2 # Begin $rc_base/init.d/postgresql
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
12 echo "Starting PostgreSQL daemon..."
13 su
- postgres
-c '/usr/bin/pg_ctl start -W -D /var/pgsql/data \
14 -l /var/pgsql/data/logfile -o "-i" '
19 echo "Stopping PostgreSQL daemon..."
20 /usr
/bin
/pg_ctl stop
-m smart
-D /var
/pgsql
/data
31 /usr
/bin
/pg_ctl status
-D /var
/pgsql
/data
35 echo "Usage: $0 {start|stop|restart|status}"
40 # End $rc_base/init.d/postgresql