Content-Length: 277982 | pFad | http://github.com/postgrespro/postgres/commit/18e3992e56de5b6e03d3cc5af37d52bb625b590c

E9 Add standard error redirection for OS/X & darwin startup script. · postgrespro/postgres@18e3992 · GitHub
Skip to content

Commit 18e3992

Browse files
committed
Add standard error redirection for OS/X & darwin startup script.
Les Hill
1 parent 9e38d2a commit 18e3992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/start-scripts/osx/PostgreSQL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ StartService () {
8686
ConsoleMessage "Starting PostgreSQL database server"
8787
cd /Users/postgres
8888
if [ "${ROTATELOGS}" = "1" ]; then
89-
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
89+
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' 2>&1 | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
9090
else
9191
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
9292
fi
@@ -107,7 +107,7 @@ RestartService () {
107107
sudo -u $PGUSER $PGCTL stop -D "$PGDATA" -s -m fast
108108
# should match StartService:
109109
if [ "${ROTATELOGS}" = "1" ]; then
110-
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
110+
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' 2>&1 | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
111111
else
112112
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
113113
fi

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/18e3992e56de5b6e03d3cc5af37d52bb625b590c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy