]>
Commit | Line | Data |
---|---|---|
63ce0355 JK |
1 | description "Starts PostgreSQL instances for all configured clusters" |
2 | ||
3 | start on started SERVICE=syslog | |
4 | ||
ad7cce9c | 5 | env PG_DB_CLUSTERS |
63ce0355 JK |
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 |