]>
Commit | Line | Data |
---|---|---|
63ce0355 JK |
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 | |
72f18a5a JK |
11 | |
12 | # please note: 'pg_ctl start' does not work with 'expect daemon' | |
13 | # nor 'expect fork', so we need to start postgres directly | |
63ce0355 JK |
14 | exec /sbin/setuidgid -s postgres \ |
15 | /usr/bin/postgres -D $DATADIR | |
16 | end script | |
17 | ||
72f18a5a | 18 | # TODO: wait for the server in post-start |
63ce0355 | 19 | |
72f18a5a | 20 | # vi: ft=upstart |