[OpenAFS-devel] rethinking log rotation

Michael Meffie mmeffie@sinenomine.net
Wed, 28 Jan 2015 11:16:09 -0500


On Wed, 28 Jan 2015 11:03:20 -0500
chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil> wrote:

> On Wed, 28 Jan 2015 10:34:57 -0500
> Michael Meffie <mmeffie@sinenomine.net> wrote:
> 
> > The bosserver now supports an option to save the pid of the server
> > processes to a file. This should make it easy for sites to send the
> > signal to reopen the log file and get a new file handle after the server
> > log file was renamed by the external log rotation program.
> 
> You could actually make bosserver forward the 'reopen the logs' signal
> to the various processes.  logrotate certainly supports this for httpd
> -- it has at least two log files that need rotated on the same signal.

That is a interesting idea. The bosserver pid is also written to a file
when -pidfiles is given, so available to the external logrotate.

> That would almost be elegant.

Let's not get carried away!


-- 
Michael Meffie <mmeffie@sinenomine.net>