Add Linux restart --- Slawomir Sudnik
Add "-l $PGLOG" for restart --- Darko Prenosil
This commit is contained in:
parent
acd1536d9f
commit
310c084921
@ -24,7 +24,7 @@
|
||||
|
||||
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
|
||||
|
||||
# $Header: /cvsroot/pgsql/contrib/start-scripts/linux,v 1.3 2001/07/30 14:52:42 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/start-scripts/linux,v 1.4 2003/06/12 02:02:24 momjian Exp $
|
||||
|
||||
## EDIT FROM HERE
|
||||
|
||||
@ -76,15 +76,19 @@ case $1 in
|
||||
;;
|
||||
restart)
|
||||
echo -n "Restarting PostgreSQL: "
|
||||
su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast"
|
||||
su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG"
|
||||
echo "ok"
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload PostgreSQL: "
|
||||
su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
|
||||
echo "ok"
|
||||
status)
|
||||
su - $PGUSER -c "$DAEMON status -D '$PGDATA'"
|
||||
;;
|
||||
*)
|
||||
# Print help
|
||||
echo "Usage: $0 {start|stop|restart|status}" 1>&2
|
||||
echo "Usage: $0 {start|stop|restart|reload|status}" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user