Re: BUG #1531: rotated log truncation broken

From: Richard Huxton <dev(at)archonet(dot)com>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1531: rotated log truncation broken
Date: 2005-03-08 11:56:12
Message-ID: 422D92DC.2020400@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Markus Bertheau wrote:
> The following bug has been logged online:
>
> Bug reference: 1531
> Logged by: Markus Bertheau
> Email address: twanger(at)bluetwanger(dot)de
> PostgreSQL version: 8.0.1
> Operating system: Linux FC3
> Description: rotated log truncation broken
> Details:
>
> The log truncation is broken for me. It works as advertised, and I follow
> the argumentation behind it, but for my scenario it is not working:
>
> I use the computer only in work hours; it's shut down in the night.
>
> I use the standard log rotation thing that is set up in the RPM distributed
> by the PGDG.
>
> My logs are not truncated because postgres was not running when the time
> based rotation occurs.

You probably want to look at the "anacron" package - should be installed
by default. Designed for just this sort of thing.

You should find if you log to syslog it's already rotating those files.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Treat 2005-03-08 13:28:39 Re: [pgsql-www] Likely typo in FAQ_DEV.html
Previous Message Markus Bertheau 2005-03-08 11:33:32 BUG #1531: rotated log truncation broken