|
24 | 24 |
|
25 | 25 | # Original author: Ryan Kirkpatrick <pgsql@rkirkpat.net>
|
26 | 26 |
|
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 $ |
28 | 28 |
|
29 | 29 | ## EDIT FROM HERE
|
30 | 30 |
|
@@ -76,15 +76,19 @@ case $1 in
|
76 | 76 | ;;
|
77 | 77 | restart)
|
78 | 78 | 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" |
80 | 80 | echo"ok"
|
81 | 81 | ;;
|
| 82 | + reload) |
| 83 | +echo -n"Reload PostgreSQL:" |
| 84 | + su -$PGUSER -c"$DAEMON reload -D '$PGDATA' -s" |
| 85 | +echo"ok" |
82 | 86 | status)
|
83 | 87 | su -$PGUSER -c"$DAEMON status -D '$PGDATA'"
|
84 | 88 | ;;
|
85 | 89 | *)
|
86 | 90 | # Print help
|
87 |
| -echo"Usage:$0 {start|stop|restart|status}"1>&2 |
| 91 | +echo"Usage:$0 {start|stop|restart|reload|status}"1>&2 |
88 | 92 | exit 1
|
89 | 93 | ;;
|
90 | 94 | esac
|
|