about summary refs log tree commit diff stats
path: root/linux/conf/rc.d/postgresql
blob: 5f0762ab4c8a0c90b95107c43c4a3ef6b28ec34d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# /etc/rc.d/postgresql: start, stop or restart PostgreSQL server postmaster
#

PG_DATA=/srv/pgsql/data

case "$1" in
    start|stop|status|restart|reload)
        sudo -u postgres pg_ctl -D "$PG_DATA" -l /var/log/postgresql "$1"
        ;;
    *)
        echo "usage: $0 start|stop|restart|reload|status"
        ;;
esac

# End of file