1010# please send them to me.
1111
1212# Arguements for pg_ctl and then for the postmaster. Change as needed.
13- ARGS=" -w -D /home/postgres /data"
13+ ARGS=" -w -D /usr/local/pgsql /data"
1414PM_ARGS=" -i -F"
1515
1616# Changes should not be needed beyond this point.
@@ -39,13 +39,13 @@ case "$1" in
3939 start)
4040# Start the postmaster using pg_ctl and given options.
4141echo -n" Starting$DESC :"
42- su - postgres sh -c" $DAEMON start$ARGS -o\" $PM_ARGS \" $LOG 2>&1"
42+ su - postgres sh -c" $DAEMON start$ARGS -o\" $PM_ARGS \" > $LOG 2>&1"
4343echo " $NAME ."
4444;;
4545 stop)
4646# Stop the postmaster using pg_ctl.
4747echo -n" Stopping$DESC :"
48- su - postgres sh -c" $DAEMON stop > /dev/null 2>&1"
48+ su - postgres sh -c" $DAEMON stop > /dev/null 2>&1"
4949echo " $NAME ."
5050;;
5151 restart)
@@ -61,7 +61,7 @@ case "$1" in
6161* )
6262# Print help.
6363N=/etc/init.d/$FILE
64- echo " Usage:$N {start|stop|restart|status}" 1 >&2
64+ echo " Usage:$N {start|stop|restart|status}" >&2
6565exit 1
6666;;
6767esac