[LinuxFailSafe] Logs rotation

Ragnar Kjørstad failsafe@ragnark.vestdata.no
Mon, 10 Jun 2002 18:17:02 +0200


On Mon, Jun 10, 2002 at 05:56:36PM +0200, Lars Marowsky-Bree wrote:
> On 2002-06-10T15:24:14,
>    Martin Bene <martin.bene@icomedias.com> said:
> 
> > Logrotate (or any other external program) can't help with the main question
> > here: how do I get failsafe to close and recreate its logfiles without
> > stopping/restarting the services?
> 
> Yeah, this is something I might tackle soon.
> 
> Right now, you can take a copy of the logfiles, and do a "cp /dev/null
> logfile" to truncate them.

Logrotate will do this for you if you specify the "copytruncate" option.



-- 
Ragnar Kjørstad
Big Storage