Re: more contrib: log rotator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Sullivan <andrew(at)libertyrms(dot)info>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: more contrib: log rotator
Date: 2003-04-04 18:58:46
Message-ID: 8321.1049482726@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"scott.marlowe" <scott(dot)marlowe(at)ihs(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2003-04-04 19:08:31 Re: [PERFORM] OSS database needed for testing
Previous Message scott.marlowe 2003-04-04 18:41:04 Re: more contrib: log rotator