cron(8) mis-feature with @reboot long after system startup
Tim Kientzle
tim at kientzle.com
Sat Nov 26 00:54:13 UTC 2011
On Nov 25, 2011, at 2:08 PM, Doug Barton wrote:
> On 11/25/2011 08:09, Cy Schubert wrote:
>> You're right. Sorry. It was late, after a long night of O/T.
>
> Actually I was in the same boat, which is why my reply was even grumpier
> than usual, sorry.
>
> Meanwhile I like your suggestion of having cron check that it's within
> $time_period before running the @reboot jobs
Hmmm… I thought rc.d distinguished between boot-time
and non-boot-time starts already.
It might be simpler and more accurate to add a crond command-line
option (--run-reboot-scripts) and have the rc.d scripts only pass that
in when crond is started at boot time.
Tim
More information about the freebsd-hackers
mailing list