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
[-- Attachment #1 --]
On Thu, Sep 06, 2012 at 01:10:27PM -0400, Glen Barber wrote:
> Hi David,
> ...
> Can you please try the attached patch?
>
> Glen
>
> Index: etc/rc.d/cron
> ===================================================================
> --- etc/rc.d/cron (revision 240152)
> +++ etc/rc.d/cron (working copy)
> @@ -12,10 +12,11 @@
>
> name="cron"
> rcvar="cron_enable"
> -command="/usr/sbin/${name}"
> pidfile="/var/run/${name}.pid"
>
> load_rc_config $name
> +command=${cron_program:-/usr/sbin/${name}}
> +
> if checkyesno cron_dst
> then
> cron_flags="$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/sbin/cron -s
1001 3652 3575 0 44 0 3508 1240 piperd S+ 14 0:00.00 grep -w cron
d134(8.3-S)[5]
Looks as if it works -- at least, it certainly has the same default
behavior. :-}
Thanks!
Peace,
david
--
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.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAlBI5xYACgkQmprOCmdXAD0ZGQCfa7PTUQ5H3ab+Yc9T8CKlG3r9
AjkAniyLSjIr38Hh8lHG0yFwuIRkuS9+
=CXMj
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120906181030.GW1486>
