Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2012 18:11:17 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        David Wolfskill <david@catwhisker.org>
Cc:        rc@FreeBSD.org
Subject:   Re: rc.d/cron appears to ignore rcvar "cron_program" -- intentional?
Message-ID:  <504949B5.6050405@FreeBSD.org>
In-Reply-To: <20120907010710.GA1486@albert.catwhisker.org>
References:  <20120906170101.GV1486@albert.catwhisker.org> <50491E64.8020808@FreeBSD.org> <20120906222405.GZ1486@albert.catwhisker.org> <50493338.7000301@FreeBSD.org> <20120907010710.GA1486@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?504949B5.6050405>