rc.d/cron appears to ignore rcvar "cron_program" -- intentional?
Doug Barton
dougb at FreeBSD.org
Fri Sep 7 01:11:18 UTC 2012
On 9/6/2012 6:07 PM, David Wolfskill wrote:
> On Thu, Sep 06, 2012 at 04:35:20PM -0700, Doug Barton wrote:
>> ...
>> Right, sorry. I meant to say "problem with rc.d." BTW, for your
>> situation you can just set the envar in the crontab.
>> ...
>
> That's where the "by default [within that jail]" comes to play: I want
> to avoid requiring each of the $N folks using the jail to remember to do
> that (correctly).
Ah, I thought it was an /etc/crontab type of situation.
So it sounds like what you were already thinking of doing was writing a
little script that exports that envar and then execs /usr/sbin/cron.
That should do it for you. Then you just change cron_program to point to
your script in /etc/rc.con[.local]. Sorry if I'm being painfully
obvious, just want to make sure we close the loop.
Doug
--
I am only one, but I am one. I cannot do everything, but I can do
something. And I will not let what I cannot do interfere with what
I can do.
-- Edward Everett Hale, (1822 - 1909)
More information about the freebsd-rc
mailing list