UPdate file from Patrick.
This commit is contained in:
parent
27ed8ac260
commit
e58775ee75
@ -10,7 +10,7 @@
|
|||||||
# please send them to me.
|
# please send them to me.
|
||||||
|
|
||||||
# Arguements for pg_ctl and then for the postmaster. Change as needed.
|
# 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"
|
PM_ARGS="-i -F"
|
||||||
|
|
||||||
# Changes should not be needed beyond this point.
|
# Changes should not be needed beyond this point.
|
||||||
@ -39,7 +39,7 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
# Start the postmaster using pg_ctl and given options.
|
# Start the postmaster using pg_ctl and given options.
|
||||||
echo -n "Starting $DESC: "
|
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."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
@ -61,7 +61,7 @@ case "$1" in
|
|||||||
*)
|
*)
|
||||||
# Print help.
|
# Print help.
|
||||||
N=/etc/init.d/$FILE
|
N=/etc/init.d/$FILE
|
||||||
echo "Usage: $N {start|stop|restart|status}" 1>&2
|
echo "Usage: $N {start|stop|restart|status}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user