Date: Thu, 6 Sep 2012 11:10:30 -0700 From: David Wolfskill <david@catwhisker.org> To: Glen Barber <gjb@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: <20120906181030.GW1486@albert.catwhisker.org> In-Reply-To: <20120906171027.GC1332@glenbarber.us> References: <20120906170101.GV1486@albert.catwhisker.org> <20120906171027.GC1332@glenbarber.us>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120906181030.GW1486>