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

next in thread | previous in thread | raw e-mail | index | archive | help

--j+Rb494BzBd9643b
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 06, 2012 at 03:06:28PM -0700, Doug Barton wrote:
> David,
>=20
> 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?
>=20
> /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=3D7.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
--=20
David H. Wolfskill				david@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.

--j+Rb494BzBd9643b
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlBJIoUACgkQmprOCmdXAD30pACff+M6almf5mXu6UekDwWua+4k
fUUAmwYACrcZpoTVDD4jXuYbRflDUU/c
=AoPA
-----END PGP SIGNATURE-----

--j+Rb494BzBd9643b--



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