We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9213f63 commit a0885feCopy full SHA for a0885fe
contrib/init.d/postgresql
@@ -39,13 +39,13 @@ case "$1" in
39
start)
40
# Start the postmaster using pg_ctl and given options.
41
echo -n "Starting $DESC: "
42
- su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" >& $LOG"
+ su - postgres sh -c "$DAEMON start $ARGS -o \"$PM_ARGS\" $LOG 2>&1"
43
echo "$NAME."
44
;;
45
stop)
46
# Stop the postmaster using pg_ctl.
47
echo -n "Stopping $DESC: "
48
- su - postgres sh -c "$DAEMON stop >& /dev/null"
+ su - postgres sh -c "$DAEMON stop > /dev/null 2>&1"
49
50
51
restart)
0 commit comments