Hi Folks,

I use syslog-ng, for which newsyslog seemed to have a few shortcomings.  Also, I
didn't like the way newsyslog processes each file to be rotated individually,
sending a signal to syslogd each time, instead of doing all the rotations, and
then sending a single signal.  yeah, I read that syslogd doesn't care, and the
method doesn't present any significant load on the system or syslogd. I guess
I'm a pedant.  Anyhow, I wrote a perl script to batch all the rotations.  It
isn't nearly as clever as newsyslog (rotation based on size, etc).  It simply
rotates when called.  For anyone who's interested, the script can be found at:

http://www.unix-wissen.de/OpenBSD/rotate-logs.pl

cheers,

Rob Urban

Reply via email to