[OpenAFS] Proposed changes for server log rotation

Hartmut Reuter reuter@rzg.mpg.de
Fri, 03 Dec 2010 18:11:10 +0100

chas williams - CONTRACTOR wrote:
> On Thu, 02 Dec 2010 22:22:11 -0500
> Michael Meffie<mmeffie@sinenomine.net>  wrote:
>> The key point is that currently some sites may be relying on
>> weekly restarts and the current rename from FileLog to FileLog.old
>> to avoid filling a disk partition. I think a more sensible approach
>> in long term, for sites that choose to log to regular files,
>> is to just let the server append, and let the modern log rotate
>> tool of your choice deal with the log rotation.
> perhaps the absolute minimum would be to implement a signal that causes
> the log files to be closed and reopened just like a restart.  this
> could be issued weekly via bosserver to emulate the restart behavior.
> people want new behavior like syslog, would need opt in and change
> command line params (eventually switch to this as the default).

This signal already exists: "kill -HUP" is executed by a cron job at our site 
each midnight to close all server logs. If you set mrafsStyleLogs you also
get nice date and time suffixes instead of ".old".

> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info

Hartmut Reuter                  e-mail 		reuter@rzg.mpg.de
			   	phone 		 +49-89-3299-1328
			   	fax   		 +49-89-3299-1301
RZG (Rechenzentrum Garching)   	web    http://www.rzg.mpg.de/~hwr
Computing Center of the Max-Planck-Gesellschaft (MPG) and the
Institut fuer Plasmaphysik (IPP)