From owner-freebsd-rc@FreeBSD.ORG Thu Sep 6 22:24:06 2012 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC427106566B; Thu, 6 Sep 2012 22:24:06 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id B1BD68FC0C; Thu, 6 Sep 2012 22:24:06 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id q86MO5Kj018730; Thu, 6 Sep 2012 15:24:05 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q86MO5A9018729; Thu, 6 Sep 2012 15:24:05 -0700 (PDT) (envelope-from david) Date: Thu, 6 Sep 2012 15:24:05 -0700 From: David Wolfskill To: Doug Barton Message-ID: <20120906222405.GZ1486@albert.catwhisker.org> References: <20120906170101.GV1486@albert.catwhisker.org> <50491E64.8020808@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j+Rb494BzBd9643b" Content-Disposition: inline In-Reply-To: <50491E64.8020808@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: rc@FreeBSD.org, David Wolfskill Subject: Re: rc.d/cron appears to ignore rcvar "cron_program" -- intentional? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 22:24:06 -0000 --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--