Re: more contrib: log rotator

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Ed L." <pgsql@bluepolka.net>
Cc: "scott.marlowe" <scott.marlowe@ihs.com>, Peter Eisentraut <peter_e@gmx.net>, Andrew Sullivan <andrew@libertyrms.info>, pgsql-hackers@postgresql.org
Date: 2003-04-04T20:13:44Z
Lists: pgsql-hackers
"Ed L." <pgsql@bluepolka.net> writes:
> Hmmm.  I would have agreed 2>&1 was needed, too, but this command seems to 
> routinely capture all output, including ERRORs:
> 	nohup pg_ctl start | nohup rotatelogs server_log.%a 86400

That's 'cause pg_ctl internally redirects the postmaster's stderr.

			regards, tom lane