How can I prevent cronjobs from automatically starting after my server has rebooted?
Every time I reboot my server the cronjobs start up again, which I'd like to prevent.
These servers are running Ubuntu 12.04 x32
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
If memory serves, Ubuntu uses
anacron, which by design runs cron jobs that were missed due to downtime, presumably to make cron jobs more reliable on laptops and other systems that are expected to be turned off more often than servers typically are.
If you don't wish this behavior, switch to another
cron daemon that is not designed to run missed scheduled tasks.
I hope this answer from Ask Ubuntu is still valid.
On CentOS cron has been removed in favour of anacron - but it works a little bit different there. On Ubuntu:
It burns down to - imho - uninstall anacron. This will remove the anacron binary putting cron into "normal" mode without anacron kicking in.