Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Craig on May 30, 2003, 04:08:49 PM

Title: Custom Logrotate
Post by: Craig on May 30, 2003, 04:08:49 PM
Hi,
I'm want to rotate the logs for a very small app which I have installed.  This seems the one thing that doesn't use the template system.

I have created the file to rotate the log as you would on a normal linux system to test that it works and that doesn't work, so I tried it the template way and that didn't work either.

So how do I create a template that will rotate my log.

Say the log is at /usr/log/app/app.log and I want it rotated at the end of every week with the others.

Thanks

Craig
Title: Re: Custom Logrotate
Post by: Kelvin on May 31, 2003, 10:42:24 AM
Craig,

You could try modifying /etc/e-smith/events/actions/purge-old-logs

Kelvin