Date: Mon, 17 Sep 2007 21:23:39 +0100 From: RW <fbsd06@mlists.homeunix.com> To: freebsd-questions@freebsd.org Subject: Re: cron jobs not done during sleep Message-ID: <20070917212339.25a61caa@gumby.homeunix.com.> In-Reply-To: <539c60b90709170822yedd52e0mcc9c8a5ff8ed0932@mail.gmail.com> References: <539c60b90709170822yedd52e0mcc9c8a5ff8ed0932@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 17 Sep 2007 08:22:45 -0700 "Steve Franks" <stevefranks@ieee.org> wrote: > Is there a tool or setting to implement this functionality? I want > something to happen weekly, I don't care when. One way is to install a crontab replacement like fcron, but the easiest way to handle this is to install anacron, which works in conjunction with crontab. With anacron you need to comment out the three periodic calls in /etc/crontab so anacron can schedule them itself - it has a default .conf file to do this. Adding anacron_enable=yes to rc.conf causes it to run tasks at boot-up. You should also add one or more entries to crontab to make it run during the night. 00 04 * * * root /usr/local/sbin/anacron It's actually not essential to set anacron_enable=yes I just use crontab to run it several times a day at convenient time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070917212339.25a61caa>