2009-01-12 23:53:18 +01:00
|
|
|
#
|
|
|
|
# /etc/rc.d/postgresql: start, stop or restart PostgreSQL server postmaster
|
|
|
|
#
|
|
|
|
|
|
|
|
PG_DATA=/var/pgsql/data
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start|stop|status|restart|reload)
|
2013-11-10 00:26:24 +01:00
|
|
|
sudo -u postgres pg_ctl -D "$PG_DATA" -l /var/log/postgresql "$1"
|
2009-01-12 23:53:18 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 start|stop|restart|reload|status"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|