of multi-instace service.
Changed files:
postgresql-instance.upstart -> 1.1
postgresql.upstart -> 1.1
--- /dev/null
+
+stop on pld.shutdown-started
+stop on stopping postgresql
+
+instance $DATADIR
+
+env DATADIR=/var/lib/pgsql
+
+script
+ exec >>/var/log/pgsql 2>&1
+ exec /sbin/setuidgid -s postgres \
+ /usr/bin/postgres -D $DATADIR
+end script
+
+
+
+
+
--- /dev/null
+description "Starts PostgreSQL instances for all configured clusters"
+
+start on started SERVICE=syslog
+
+env PG_DB_CLUSTERS=
+
+pre-start script
+ exec >/tmp/pre-start 2>&1
+ set -x
+ if [ -z "$PG_DB_CLUSTERS" ] ; then
+ # read PG_DB_CLUSTERS from /etc/sysconfig/postgresql
+ # for init script compatibility
+ . /etc/sysconfig/postgresql
+ fi
+ for DATADIR in $PG_DB_CLUSTERS ; do
+ start postgresql/instance DATADIR=$DATADIR
+ done
+end script