[plug] Rotating logs on a Workstation...
Adrian Blockley
a.blockley at poboxes.com
Wed Oct 1 22:00:14 WST 2003
I believe anacron can be used to run scripts daily, weekly etc.
When you reboot your machine it checks the elapsed time since the task was run and if it is greater than a day/week/whatever-the-time-setting-is-for-this-task it will rerun your task.
Hope this helps (hoping my memory serves me correctly for once...)
Cheers
Adrian
On Wed, 01 Oct 2003 21:32:16 +0800
Trevor Phillips <T.Phillips at murdoch.edu.au> wrote:
> I'm hoping there's a simple, obvious answer to this. My home PC,
> running Debian 3.0 (Woody), is NOT on all the time, and it seems, does
> not always rotate log files as often as it should. As a result, I end
> up with a rather large /var/, and no free disk space.
>
> As an example, /var/log/messages was last rotated in March. The current
>
> messages file is 40Mb. (No, not huge, but I've had this config since
> back in the days when 2Gig was PLENTY for a root fs...)
>
> I've tried manually running logrotate. I've tried editing logrotate so
> it rotates by default daily instead of weekly. Still no rotation going
> on.
>
> What am I missing? How can this be avoided?
>
--
"There are only 10 kinds of people in the world: Those who
understand binary, and those who don't."
Adrian Blockley
32 Darwinia Loop
Canningvale WA, 6155
Ph: 08 9256 1953
Mobile: 0405 609 990
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list