rc.d/cron appears to ignore rcvar "cron_program" -- intentional?
David Wolfskill
david at catwhisker.org
Thu Sep 6 18:10:32 UTC 2012
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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20120906/4dc12636/attachment.pgp
More information about the freebsd-rc
mailing list