FIX INCLUDED: anacron does not work in default config on always-on computers
Bug #118004 reported by
Christian Gunning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Invalid
|
Undecided
|
Kees Cook |
Bug Description
Default config uses both cron and anacron. Cron processes scripts in cron.hourly, while anacron processes the rest.
Problem is that anacron isn't a deamon. In ubuntu, it's started at boot, it checks if there's anything to do, and then exits.
For machines that regularly reboot this works, but for servers, anacron never restarts unless asked. ps -aux verifies this I encountered this on Feisty Server, and others describe the issue in detail here:
http://
THE FIX: add a script to cron.hourly so that cron starts anacron to check if there's anything to do.
#!/bin/sh
/usr/sbin/anacron -s
To post a comment you must log in.
Not sure if -s is necessary or proper.
Also, this shouldn't affect machine without anacron installed. It seems to affect always-on machines with anacron installed by default (Desktop particularly) .