10
10
# please send them to me.
11
11
12
12
# 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"
14
14
PM_ARGS=" -i -F"
15
15
16
16
# Changes should not be needed beyond this point.
@@ -39,13 +39,13 @@ case "$1" in
39
39
start)
40
40
# Start the postmaster using pg_ctl and given options.
41
41
echo -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"
43
43
echo " $NAME ."
44
44
;;
45
45
stop)
46
46
# Stop the postmaster using pg_ctl.
47
47
echo -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"
49
49
echo " $NAME ."
50
50
;;
51
51
restart)
@@ -61,7 +61,7 @@ case "$1" in
61
61
* )
62
62
# Print help.
63
63
N=/etc/init.d/$FILE
64
- echo " Usage:$N {start|stop|restart|status}" 1 >&2
64
+ echo " Usage:$N {start|stop|restart|status}" >&2
65
65
exit 1
66
66
;;
67
67
esac