From owner-freebsd-rc@FreeBSD.ORG Fri Sep 7 01:11:18 2012 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id A2F791065670 for ; Fri, 7 Sep 2012 01:11:18 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 5BA4014E6FF; Fri, 7 Sep 2012 01:11:18 +0000 (UTC) Message-ID: <504949B5.6050405@FreeBSD.org> Date: Thu, 06 Sep 2012 18:11:17 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: David Wolfskill References: <20120906170101.GV1486@albert.catwhisker.org> <50491E64.8020808@FreeBSD.org> <20120906222405.GZ1486@albert.catwhisker.org> <50493338.7000301@FreeBSD.org> <20120907010710.GA1486@albert.catwhisker.org> In-Reply-To: <20120907010710.GA1486@albert.catwhisker.org> X-Enigmail-Version: 1.4.3 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:11:18 -0000 On 9/6/2012 6:07 PM, David Wolfskill wrote: > On Thu, Sep 06, 2012 at 04:35:20PM -0700, Doug Barton wrote: >> ... >> Right, sorry. I meant to say "problem with rc.d." BTW, for your >> situation you can just set the envar in the crontab. >> ... > > That's where the "by default [within that jail]" comes to play: I want > to avoid requiring each of the $N folks using the jail to remember to do > that (correctly). Ah, I thought it was an /etc/crontab type of situation. 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. Doug -- I am only one, but I am one. I cannot do everything, but I can do something. And I will not let what I cannot do interfere with what I can do. -- Edward Everett Hale, (1822 - 1909)