Add Linux restart --- Slawomir Sudnik

Add "-l $PGLOG" for restart --- Darko Prenosil
This commit is contained in:
Bruce Momjian 2003-06-12 02:02:24 +00:00
parent acd1536d9f
commit 310c084921
1 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,7 @@
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net> # 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 ## EDIT FROM HERE
@ -76,15 +76,19 @@ case $1 in
;; ;;
restart) restart)
echo -n "Restarting PostgreSQL: " 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" echo "ok"
;; ;;
reload)
echo -n "Reload PostgreSQL: "
su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
echo "ok"
status) status)
su - $PGUSER -c "$DAEMON status -D '$PGDATA'" su - $PGUSER -c "$DAEMON status -D '$PGDATA'"
;; ;;
*) *)
# Print help # Print help
echo "Usage: $0 {start|stop|restart|status}" 1>&2 echo "Usage: $0 {start|stop|restart|reload|status}" 1>&2
exit 1 exit 1
;; ;;
esac esac