On Feb 26, 2004, at 8:29 PM, Alastair Rankine wrote:
I just installed anacron, and it automatically updated my /etc/crontab
with the following line:
10 * * * * root /opt/local/sbin/anacron
-s
(actually it was the anacron.sh startup script, but anyway)
And if I read that correctly, it means that cron runs anacron every 10
minutes.
No, it runs at 10 minutes past the hour every hour (like you mention in
the email shortly after this one).
(speaking of which, why isn't man crontab(5) installed on my OS X
10.3.2 box, does anyone know? crontab(1) is there, but not the file
format...)
To read the crontab(5) man page, you need to type:
man 5 crontab
That works for me anyway.
So after port install, you need to:
a) create /opt/local/etc/anacrontab (based on the sample file in the
same directory), and
b) start it with "sudo /opt/local/etc/rc.d/anacron.sh start"
Hope this helps...
In addition, you can check the anacron and anacrontab man pages:
man anacron
or
man anacrontab
They has more information. I basically use the sample anacrontab file
and uncomment the lines dealing with the syscron.daily/weekly/montly
lines, and then comment the corresponding lines out in the system
/etc/crontab file. The makes anacron do all the normal tasks in
addition to any you add to the /opt/local/etc/cron.* directories. Very
useful for laptops or desktops that are not left on all the time.
-Robert
|