rc.d/cron appears to ignore rcvar "cron_program" -- intentional?
David Wolfskill
david at catwhisker.org
Thu Sep 6 22:24:06 UTC 2012
On Thu, Sep 06, 2012 at 03:06:28PM -0700, Doug Barton wrote:
> David,
>
> You haven't defined an actual problem yet. :)
The "actual problem" I have is that I want cron(8) in a jail to execute
any tasks with an artificially-set UNAME_r environment variable by
default. (We set this environment variable in login.conf, but that only
affects processes where login(1) is involved; cron-spawned tasks don't
qualify.)
> Did you try setting cron_program in /etc/rc.conf and it didn't work?
>
> /etc/rc.subr should handle this for you. If it doesn't we need to look
> at it again.
That's fine; I hadn't tried it: I merely looked at the script,
thought it odd, and asked a question: Is that intentional?
I gather from your response that the answer is "yes." :-}
(I did try augmenting the rc.d/cron script with
export UNAME_r=7.1-RELEASE
immediately prior to the run_rc_command invocation; that did not appear
to do what I rather had hoped it would.)
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20120906/0825eef9/attachment.pgp
More information about the freebsd-rc
mailing list