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 [email protected] Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key.
pgpFcsp5FivUs.pgp
Description: PGP signature
