Re: rotatelog / logrotate with PostgreSQL - Mailing list pgsql-general

From Thomas Beutin
Subject Re: rotatelog / logrotate with PostgreSQL
Date
Msg-id 20020924210109.A5081@laokoon.bug.net
Whole thread Raw
In response to Re: rotatelog / logrotate with PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: rotatelog / logrotate with PostgreSQL
Next
From: Robert Treat
Date:
Subject: Re: Postmaster Uptime