]>
Commit | Line | Data |
---|---|---|
1 | description "Starts PostgreSQL instances for all configured clusters" | |
2 | ||
3 | start on started SERVICE_syslog=y | |
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 |