]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | stop on pld.shutdown-started | |
3 | stop on stopping postgresql | |
4 | ||
5 | instance $DATADIR | |
6 | ||
7 | env DATADIR=/var/lib/pgsql | |
8 | ||
9 | script | |
10 | exec >>/var/log/pgsql 2>&1 | |
11 | ||
12 | # please note: 'pg_ctl start' does not work with 'expect daemon' | |
13 | # nor 'expect fork', so we need to start postgres directly | |
14 | exec /sbin/setuidgid -s postgres \ | |
15 | /usr/bin/postgres -D $DATADIR | |
16 | end script | |
17 | ||
18 | # TODO: wait for the server in post-start | |
19 | ||
20 | # vi: ft=upstart |