Patch attached and applied. Thanks.
---------------------------------------------------------------------------
Les Hill wrote:
> Hi,
>
> I recently built and installed postgres 8.2.4 on my MBP (10.4.9).
> Thanks for the great work!
>
> The existing startup script worked with one tweak, the rotate logs
> command was not redirecting stderr to the log. A patch generated with
> the make_diff scripts is attached.
>
> --
> Les Hill
> leshill@gmail.com
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Index: contrib/start-scripts/osx/PostgreSQL
===================================================================
RCS file: /cvsroot/pgsql/contrib/start-scripts/osx/PostgreSQL,v
retrieving revision 1.1
diff -c -c -r1.1 PostgreSQL
*** contrib/start-scripts/osx/PostgreSQL 30 May 2007 18:10:38 -0000 1.1
--- contrib/start-scripts/osx/PostgreSQL 30 May 2007 19:56:08 -0000
***************
*** 86,92 ****
ConsoleMessage "Starting PostgreSQL database server"
cd /Users/postgres
if [ "${ROTATELOGS}" = "1" ]; then
! sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
else
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
fi
--- 86,92 ----
ConsoleMessage "Starting PostgreSQL database server"
cd /Users/postgres
if [ "${ROTATELOGS}" = "1" ]; then
! sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' 2>&1 | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
else
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
fi
***************
*** 107,113 ****
sudo -u $PGUSER $PGCTL stop -D "$PGDATA" -s -m fast
# should match StartService:
if [ "${ROTATELOGS}" = "1" ]; then
! sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
else
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
fi
--- 107,113 ----
sudo -u $PGUSER $PGCTL stop -D "$PGDATA" -s -m fast
# should match StartService:
if [ "${ROTATELOGS}" = "1" ]; then
! sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' 2>&1 | ${LOGUTIL} '${PGLOG}' ${ROTATESEC} &"
else
sudo -u $PGUSER sh -c "${DAEMON} -D '${PGDATA}' &" >>$PGLOG 2>&1
fi