forked from ports/contrib
postgresql: fixed rc script
This commit is contained in:
parent
53dcebe91d
commit
40e486b62b
@ -1,9 +1,9 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3/cT+rqQo8NUmsnQVJqxJUBEQpLw9S3Zo9eQP3cC8lS/szyuadOrJ6zyf0PD0FSd7FnIvjrDPKUaWqbVIZfiPgs=
|
||||
RWSagIOpLGJF3zAu3S8SRHcxkbRfr4eYjXwaswLG7f1QmtXcwZCngg6EUh81VeNAu9l+R2uT5Leg9ahddDEYP8TQoJP8oErwEQo=
|
||||
SHA256 (Pkgfile) = fcfa65d78ec521511bbc3670986aa657d1cb4b89cb4e9cf710999a7026b7dda1
|
||||
SHA256 (.footprint) = 1d67f8715b305aba14022dede7db6d83d98fe808209e3ced51153fd75af56b72
|
||||
SHA256 (postgresql-14.0.tar.bz2) = ee2ad79126a7375e9102c4db77c4acae6ae6ffe3e082403b88826d96d927a122
|
||||
SHA256 (postgresql-run-socket.patch) = 02ffb53b0a5049233f665c873b96264db77daab30e5a2194d038202d815a8e6a
|
||||
SHA256 (postgresql-perl-rpath.patch) = af6186d40128e043f333da4591455bf62b7c96e80214835f5c8c60b635ea9afb
|
||||
SHA256 (postgresql.rc) = 95ada4267034cf5d33340b8411a18f8cbd0428b5714afac16990b5c3a144f347
|
||||
SHA256 (postgresql.rc) = 1e06f7cb11e198201f40bb265dc36bfd0085a29e55a8352315969d3512607044
|
||||
SHA256 (postgresql.pam) = 978a2542078a1216b0c23756f49e79ac5a99c905e5ec1e57867d0941a505668a
|
||||
|
@ -4,14 +4,13 @@
|
||||
|
||||
PG_DATA=/var/pgsql/data
|
||||
|
||||
[ -e /run/postgresql ] && install -D -u 42 -g 42 /run/postgresql
|
||||
[ ! -e /run/postgresql ] && install -d -o postgres -g postgres /run/postgresql
|
||||
|
||||
case "$1" in
|
||||
start|stop|status|restart|reload)
|
||||
[ ! -e /run/postgresql ] && mkdir /run/postgresql && chown postgres /run/postgresql
|
||||
sudo -u postgres pg_ctl -D "$PG_DATA" -l /var/log/postgresql "$1" ;;
|
||||
*)
|
||||
echo "usage: $0 start|stop|restart|reload|status" ;;
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user