From owner-freebsd-rc@FreeBSD.ORG Thu Sep 6 18:10:32 2012 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 024251065674; Thu, 6 Sep 2012 18:10:32 +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 B16818FC0A; Thu, 6 Sep 2012 18:10:31 +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 q86IAUn8017678; Thu, 6 Sep 2012 11:10:30 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q86IAUwU017677; Thu, 6 Sep 2012 11:10:30 -0700 (PDT) (envelope-from david) Date: Thu, 6 Sep 2012 11:10:30 -0700 From: David Wolfskill To: Glen Barber Message-ID: <20120906181030.GW1486@albert.catwhisker.org> References: <20120906170101.GV1486@albert.catwhisker.org> <20120906171027.GC1332@glenbarber.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1RhGCd1AsoFHGRHc" Content-Disposition: inline In-Reply-To: <20120906171027.GC1332@glenbarber.us> 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 18:10:32 -0000 --1RhGCd1AsoFHGRHc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 06, 2012 at 01:10:27PM -0400, Glen Barber wrote: > Hi David, > ... > Can you please try the attached patch? >=20 > Glen >=20 > Index: etc/rc.d/cron > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- etc/rc.d/cron (revision 240152) > +++ etc/rc.d/cron (working copy) > @@ -12,10 +12,11 @@ > =20 > name=3D"cron" > rcvar=3D"cron_enable" > -command=3D"/usr/sbin/${name}" > pidfile=3D"/var/run/${name}.pid" > =20 > load_rc_config $name > +command=3D${cron_program:-/usr/sbin/${name}} > + > if checkyesno cron_dst > then > cron_flags=3D"$cron_flags -s" Laptop is running stable/8 @r240161; the above was easy enough to hand-edit, so I did, then: d134(8.3-S)[3] pgrep cron ; sudo service cron restart; pgrep cron 1676 Stopping cron. Starting cron. 3649 d134(8.3-S)[4] ps axwwl | grep -w cron 0 3649 1 0 47 0 3396 1368 nanslp Is ?? 0:00.00 /usr/sb= in/cron -s 1001 3652 3575 0 44 0 3508 1240 piperd S+ 14 0:00.00 grep -w= cron d134(8.3-S)[5]=20 Looks as if it works -- at least, it certainly has the same default behavior. :-} Thanks! 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. --1RhGCd1AsoFHGRHc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBI5xYACgkQmprOCmdXAD0ZGQCfa7PTUQ5H3ab+Yc9T8CKlG3r9 AjkAniyLSjIr38Hh8lHG0yFwuIRkuS9+ =CXMj -----END PGP SIGNATURE----- --1RhGCd1AsoFHGRHc--