cron(8) mis-feature with @reboot long after system startup

Christian Kastner debian at kvr.at
Fri Nov 25 22:05:30 UTC 2011


Hi,

On 2011-11-25 08:02, Jason Hellenthal wrote:
> So with that said... is there a way we could actually make this run @reboot only ?

Debian's cron[0] and Fedora's cronie[1] have solved this by touching a
file on first startup and running @reboot only when this file does not
yet exist.

Note that while [0] may point to other patches that might be of interest
to FreeBSD, they are still WIP (as evident from the linked patch) as we
are still in the process of quiltifying our current code base.

Regards,
Christian


[0]
http://anonscm.debian.org/gitweb/?p=pkg-cron/pkg-cron.git;a=blob;f=debian/patches/features/run-on-reboot;h=94bab7dcbc4b34e4686385ca3ba3037453f1f4bb;hb=refs/heads/sf3

[1]
http://git.fedorahosted.org/git/?p=cronie.git;a=commitdiff;h=2abb46f60f496e2725333a86ade0f3913981761d



More information about the freebsd-hackers mailing list