Or, you could just comment out the lines in /etc/anacrontab that do cron
jobs.
--jc
John Poelstra wrote:
Bob Goodwin said the following on 12/24/2007 08:34 AM Pacific Time:
How can I stop anacron from running if cron has already run just before?
Or if they would each save to different log files I guess that would
work too.
As it is if the computer is running at four in the morning both are
saved to a file that is sent to me and I wind up reading through
essentially the same set of data twice. A minor thing I suppose but
I would prefer getting it only once.
Bob Goodwin
Some people (like me) simply disable anacron for this reason on all of
my boxes. None of my cron jobs are so important that they need to be
run if they missed their originally scheduled time--particularly on
laptops.
chkconfig --del anacron