Re: rotatelog / logrotate with PostgreSQL
Thomas Beutin <tyrone@laokoon.in-berlin.de>
From: Thomas Beutin <tyrone@laokoon.IN-Berlin.DE>
To: pgsql-general@postgresql.org
Date: 2002-09-24T19:01:09Z
Lists: pgsql-general
On Tue, Sep 24, 2002 at 02:09:01PM -0400, Tom Lane wrote: > Roland Roberts <roland@astrofoto.org> writes: > > Tom> Should work to just pipe the postmaster's stderr into it, eg > > Tom> postmaster ... 2>&1 | logrotate ... & > > > Huh? logrotate moves a log file, it doesn't log anything. > > My mistake; I was assuming that that script did something else. > What PG is able to work with is a script that absorbs input on > stdin and sends it to a rotatable logfile. Surely there are some > of those out there. Are You looking for cronolog (http://www.cronolog.org/)? It sucks the output of a daemon and manages the logfiles. Greetings, -tb -- Thomas Beutin tb@laokoon.IN-Berlin.DE Beam me up, Scotty. There is no intelligent live down in Redmond.