diff options
author | Silvino Silva <silvino@bk.ru> | 2020-02-17 06:43:09 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2020-02-17 16:39:18 +0000 |
commit | d9ddaa49950198fbdae3e18e95506b4451eb9fbc (patch) | |
tree | 93020b7598c3d8a2b689921132b8fadeaeddab37 /core/conf/rc.d/postgresql | |
parent | 957436d2e08d43e9cb8cb2a6904ff6a8b81d917a (diff) | |
download | doc-d9ddaa49950198fbdae3e18e95506b4451eb9fbc.tar.gz |
several configuration fix's
Diffstat (limited to 'core/conf/rc.d/postgresql')
-rwxr-xr-x | core/conf/rc.d/postgresql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/conf/rc.d/postgresql b/core/conf/rc.d/postgresql new file mode 100755 index 0000000..5f0762a --- /dev/null +++ b/core/conf/rc.d/postgresql @@ -0,0 +1,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 |