]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.upstart
- build more contribs:
[packages/postgresql.git] / postgresql.upstart
1 description "Starts PostgreSQL instances for all configured clusters"
2
3 start on started SERVICE=syslog
4
5 env PG_DB_CLUSTERS
6
7 pre-start script
8         exec >/tmp/pre-start 2>&1
9         set -x
10         if [ -z "$PG_DB_CLUSTERS" ] ; then
11                 # read PG_DB_CLUSTERS from /etc/sysconfig/postgresql
12                 # for init script compatibility
13                 . /etc/sysconfig/postgresql
14         fi
15         for DATADIR in $PG_DB_CLUSTERS ; do
16                 start postgresql/instance DATADIR=$DATADIR
17         done
18 end script
This page took 0.069629 seconds and 3 git commands to generate.