Re: more contrib: log rotator

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "scott.marlowe" <scott.marlowe@ihs.com>
Cc: "Ed L." <pgsql@bluepolka.net>, Peter Eisentraut <peter_e@gmx.net>, Andrew Sullivan <andrew@libertyrms.info>, pgsql-hackers@postgresql.org
Date: 2003-04-04T18:58:46Z
Lists: pgsql-hackers
"scott.marlowe" <scott.marlowe@ihs.com> writes:
> rotatelogs is in my path and all, it just never sees it.

You mean the command fails?  Or just that it doesn't capture output?

> "$po_path" ${1+"$@"} </dev/null | $PGPATH/rotatelogs $logfile $DURATION 2>&1 &

Most if not all of the postmaster's log output goes to stderr, so you'd need

"$po_path" ${1+"$@"} </dev/null 2>&1 | $PGPATH/rotatelogs ...

to have any hope of useful results.

			regards, tom lane