]> git.pld-linux.org Git - packages/postgresql.git/blame_incremental - postgresql-instance.upstart
- rel 0.1 actually - pg_ctl-fix.patch needs update (or checking if it can be obsolete...
[packages/postgresql.git] / postgresql-instance.upstart
... / ...
CommitLineData
1
2stop on pld.shutdown-started
3stop on stopping postgresql
4
5instance $DATADIR
6
7env DATADIR=/var/lib/pgsql
8
9script
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
16end script
17
18# TODO: wait for the server in post-start
19
20# vi: ft=upstart
This page took 0.028989 seconds and 4 git commands to generate.