On 11/25/2011 16:16, Tim Kientzle wrote:
>
> 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.
Well sure, rc.d does, but /usr/sbin/crond doesn't.
> 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.
No, since that wouldn't help if the user started it without rc.d, and
more importantly, the current behavior is broken. :)
Doug
--
"We could put the whole Internet into a book."
"Too practical."
Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price. :) http://SupersetSolutions.com/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"