Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2001-02-08 04:57:24 +0000
committerBruce Momjian2001-02-08 04:57:24 +0000
commite58775ee750264a62536e7df724b3722aeecd095 (patch)
treeb282c8604655007d491015f3c67ac1c45a0a4dfd
parent27ed8ac26069ef9fff5c08ce5c3351367731fbdb (diff)
UPdate file from Patrick.
-rw-r--r--contrib/init.d/postgresql8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/init.d/postgresql b/contrib/init.d/postgresql
index eed31687fae..d408d691aeb 100644
--- a/contrib/init.d/postgresql
+++ b/contrib/init.d/postgresql
@@ -10,7 +10,7 @@
# please send them to me.
# Arguements for pg_ctl and then for the postmaster. Change as needed.
-ARGS="-w -D /home/postgres/data"
+ARGS="-w -D /usr/local/pgsql/data"
PM_ARGS="-i -F"
# Changes should not be needed beyond this point.
@@ -39,13 +39,13 @@ case "$1" in
start)
# Start the postmaster using pg_ctl and given options.
echo -n "Starting $DESC: "
- su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" $LOG 2>&1"
+ su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" > $LOG 2>&1"
echo "$NAME."
;;
stop)
# Stop the postmaster using pg_ctl.
echo -n "Stopping $DESC: "
- su - postgres sh -c "$DAEMON stop > /dev/null 2>&1"
+ su - postgres sh -c "$DAEMON stop > /dev/null 2>&1"
echo "$NAME."
;;
restart)
@@ -61,7 +61,7 @@ case "$1" in
*)
# Print help.
N=/etc/init.d/$FILE
- echo "Usage: $N {start|stop|restart|status}" 1>&2
+ echo "Usage: $N {start|stop|restart|status}" >&2
exit 1
;;
esac