Re: rotatelog / logrotate with PostgreSQL

Поиск
Список
Период
Сортировка
От Thomas Beutin
Тема Re: rotatelog / logrotate with PostgreSQL
Дата
Msg-id 20020924210109.A5081@laokoon.bug.net
обсуждение исходный текст
Ответ на Re: rotatelog / logrotate with PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: rotatelog / logrotate with PostgreSQL
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Postmaster Uptime