A question about anacron (ubuntu 8.10)

Smoot Carl-Mitchell smoot at tic.com
Thu Feb 5 17:02:42 UTC 2009


On Thu, 2009-02-05 at 11:29 -0500, Pete Clapham wrote:

> OK, my installation includes anacron, and the "services" button 
> indicates that it is running.  However, when I put a command into the 
> cron.daily directory it didn't run.  What else do I have to do in order 
> to get it to run?

It runs at a specific time each day.  The actual cron entries are
in /etc/crontab.  You will see a line like:

25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )

This means the "daily" cron tasks will run at 6:25 AM every day.
run-parts executes all the scripts in the /etc/cron.daily directory at
the indicated time.

Also be sure the script in /etc/cron.daily has the execute bits set.
e.g.

sudo chown 755 script_name

You can do a dry run test to see what will be executed by running:

run-parts --test /etc/cron.daily

-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list