fcron without anacron breaks /etc/crontab
Bug #241004 reported by
Stuart Sierra
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fcron (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: fcron
If anacron is not installed, fcron installs /usr/sbin/anacron as a symlink to /bin/true
This breaks these three lines in the the default system crontab (/etc/crontab):
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
As a result, system tasks in /etc/cron.
This affects Ubuntu Server, where anacron is not installed by default.
Ubuntu 7.10
fcron 3.0.1-1
To post a comment you must log in.
fcron's README.Debian includes the following:
> ** FCRON DOES NOT REPLACE CRON YET, KEEP CRON INSTALLED ** {daily, weekly, monthly} from cron
>
> While in principle this would be possible, the Debian
> package of fcron does not try to supersede cron. Note,
> however, that it has to play dirty with anacron so as to
> hijack control of /etc/cron.
> even if anacron is not installed in the system.
>
> This is done symlinking /usr/sbin/anacron to /bin/true, and
> unfortunately causes the fcron package to conflict with the
> anacron package. If you just removed (as opposed to purging)
> the anacron package to install fcron, anacron's initscript
> might still try to activate anacron. This is harmless, do
> NOT file bugs against anacron because of it!
...
> The system fcrontab is accessible using fcrontab -e systab,
> as root. That's where the anacron-emulation lives. If you
> want to customize at which time/day of the week/day of the
> month the daily, weekly and monthly cron jobs are to be run,
> that's the place to poke at.