Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 310c084

Browse files
committed
Add Linux restart --- Slawomir Sudnik
Add "-l $PGLOG" for restart --- Darko Prenosil
1 parent acd1536 commit 310c084

File tree

1 file changed

+7
-3
lines changed
  • contrib/start-scripts

1 file changed

+7
-3
lines changed

contrib/start-scripts/linux

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
2626

27-
# $Header: /cvsroot/pgsql/contrib/start-scripts/linux,v 1.3 2001/07/30 14:52:42 momjian Exp $
27+
# $Header: /cvsroot/pgsql/contrib/start-scripts/linux,v 1.4 2003/06/12 02:02:24 momjian Exp $
2828

2929
## EDIT FROM HERE
3030

@@ -76,15 +76,19 @@ case $1 in
7676
;;
7777
restart)
7878
echo -n "Restarting PostgreSQL: "
79-
su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast"
79+
su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG"
8080
echo "ok"
8181
;;
82+
reload)
83+
echo -n "Reload PostgreSQL: "
84+
su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
85+
echo "ok"
8286
status)
8387
su - $PGUSER -c "$DAEMON status -D '$PGDATA'"
8488
;;
8589
*)
8690
# Print help
87-
echo "Usage: $0 {start|stop|restart|status}" 1>&2
91+
echo "Usage: $0 {start|stop|restart|reload|status}" 1>&2
8892
exit 1
8993
;;
9094
esac

0 commit comments

Comments
 (0)