Skip to content

Commit a0885fe

Browse files
committed
cleaned up.
1 parent 9213f63 commit a0885fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/init.d/postgresql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ case "$1" in
3939
start)
4040
# Start the postmaster using pg_ctl and given options.
4141
echo -n "Starting $DESC: "
42-
su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" >& $LOG"
42+
su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" $LOG 2>&1"
4343
echo "$NAME."
4444
;;
4545
stop)
4646
# Stop the postmaster using pg_ctl.
4747
echo -n "Stopping $DESC: "
48-
su - postgres sh -c "$DAEMON stop >& /dev/null"
48+
su - postgres sh -c "$DAEMON stop > /dev/null 2>&1"
4949
echo "$NAME."
5050
;;
5151
restart)

0 commit comments

Comments
 (0)