[distcc] Re: Bug#203747: distcc should rotate distccd logs
Dag Wieers
dag at wieers.com
Fri Aug 1 13:31:41 GMT 2003
On Fri, 1 Aug 2003, Martin Pool wrote:
> On 1 Aug 2003, "Nikita V. Youshchenko" <yoush at cs.msu.su> wrote:
> > Package: distcc
> > Version: 2.5.1-1
> > Severity: important
> >
> > I just found a 26-megabyte /var/log/distccd.log ..
> >
> > Distcc package should support distccd log rotation.
>
> Thankyou for the suggestion. It is a good idea.
>
> The main thing would be to add distcc to the logrotate configuration.
>
> There is no support at the moment for distcc to reopen its log files,
> so it would need to either write out through syslog, or be shut down
> and restarted, or to gain the ability to reopen logs on say a SIGHUP.
logrotate has the ability to copy the logfile and truncate the existing so
that you may not have to restart/send signals to the process. It is called
copytruncate but it might loose some data between copying and truncating.
My package had a logrotate file, but it seems not to work using
copytruncate and I'm not sure why. Is distcc just appending to the file ?
/var/log/distccd.log {
missingok
copytruncate
notifempty
}
Kind regards,
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the distcc
mailing list