[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: syslogs not rotated - cron.daily never run because computer never up at 6:25am?



On Sun, Sep 16, 2007 at 04:56:29PM +0200, Malte Forkel wrote:
> The root partition of a machine running Debian Etch has filled up because 
> log files like /var/log/syslog are not rotated and have become huge.
>
> As far as I understand, the script that rotates the system logs is 
> /etc/cron.daily/sysklogd, which should be triggered by the entry
>
>  25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts 
> --report /etc/cron.daily )
>
> in /etc/crontab. But I found only one reference to the scripts in 
> cron.daily being executed over the last couple of months.
>
> Could it be that cron ignores its daily tasks if the machine is down at the 
> time specified for cron.daily in /etc/crontab? I.e., if the machine is 
> never up at 6:25am, the daily cron jobs are never executed? If that's the 
> case, how do I schedule jobs that are truly executed every day, even if the 
> machine only runs at irregular times?

Just install anacron.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: