From owner-freebsd-rc@FreeBSD.ORG Fri Sep 7 01:17:37 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 20282106564A; Fri, 7 Sep 2012 01:17:36 +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 AC53D8FC0A; Fri, 7 Sep 2012 01:17:36 +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 q871HZbj019954; Thu, 6 Sep 2012 18:17:35 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q871HZ8s019953; Thu, 6 Sep 2012 18:17:35 -0700 (PDT) (envelope-from david) Date: Thu, 6 Sep 2012 18:17:35 -0700 From: David Wolfskill To: Doug Barton Message-ID: <20120907011735.GC1486@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> <504949B5.6050405@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="52aklQ8BZHJhx2Z3" Content-Disposition: inline In-Reply-To: <504949B5.6050405@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: rc@FreeBSD.org 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: Fri, 07 Sep 2012 01:17:37 -0000 --52aklQ8BZHJhx2Z3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 06, 2012 at 06:11:17PM -0700, Doug Barton wrote: > ... > Ah, I thought it was an /etc/crontab type of situation. :-} I rather like /etc/crontab. But this is for (quasi-)random developers -- and some of their build tools are sensitive to the output of "uname -r". > 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. I was thinkinig of doing something like that, yes -- so as a reality check, I hacked /etc/rc.d/cron to export UNAME_r before issuing run_rc_command; that was not effective. So I've started looking at the code in src/usr.sbin/cron to see if it may be clearing the environment. At which point, this is rather far off-topic for -rc@, so it probably ought not be discussed further here. 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. --52aklQ8BZHJhx2Z3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBJSy0ACgkQmprOCmdXAD3yugCeOEJ8jKTn4eZe0m0tGrNYwh9A BQkAn3zEJlcCKSzp9nYHSLdSz4qrZyZb =5hXq -----END PGP SIGNATURE----- --52aklQ8BZHJhx2Z3--