[nycbug-talk] savelogs
Dru
dlavigne6
Thu Feb 24 21:05:57 EST 2005
On Thu, 24 Feb 2005, George Georgalis wrote:
> On Thu, Feb 24, 2005 at 10:45:06AM -0500, Dru wrote:
>>
>> #!/bin/sh
>> cd /var/log
>> /usr/local/bin/savelogs --config=/usr/local/etc/savelogs.conf messages
>> /usr/local/bin/savelogs --config=/usr/local/etc/savelogs.conf maillog
>>
>
> from the never heard of it, never tried it peanut gallery; do you get double instances when invoked like this?
Sweet, easy to configure program--quite customizable. No BSD-style
documentation, though ;-)
Contrary to the docs, this is the proper way to run it from a script/cron:
/usr/local/bin/savelogs --config=/usr/local/etc/savelogs.conf
i.e. don't specify logs to rotate from the command line (as they're
specified in the config file)
Dru
More information about the talk
mailing list