summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2001-01-21 20:57:38 +0000
committerdougb <dougb@FreeBSD.org>2001-01-21 20:57:38 +0000
commite3a3551537ca32bc0adadc0633a5b0320168e716 (patch)
tree5066b091b85927859ae39dfb8f8c03a72e4ab82f /etc
parent937122ae6dc02a639d13dd06132201548bd7364f (diff)
downloadFreeBSD-src-e3a3551537ca32bc0adadc0633a5b0320168e716.zip
FreeBSD-src-e3a3551537ca32bc0adadc0633a5b0320168e716.tar.gz
Add the options of which cron program to run, and specifying flags
to it. PR: conf/24358 Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf2
-rw-r--r--etc/rc2
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index b75774b..d78452b 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -295,6 +295,8 @@ allscreens_flags="" # Set this vidcontrol mode for all virtual screens
##############################################################
cron_enable="YES" # Run the periodic job daemon.
+cron_program="/usr/sbin/cron" # Which cron executable to run (if enabled).
+cron_flags="" # Which options to pass to the cron daemon.
lpd_enable="NO" # Run the line printer daemon.
lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one.
lpd_flags="" # Flags to lpd (if enabled).
diff --git a/etc/rc b/etc/rc
index 06d5615..f034c56 100644
--- a/etc/rc
+++ b/etc/rc
@@ -526,7 +526,7 @@ case ${cron_enable} in
[Nn][Oo])
;;
*)
- echo -n ' cron'; cron
+ echo -n ' cron'; ${cron_program:-/usr/sbin/cron} ${cron_flags}
;;
esac
OpenPOWER on IntegriCloud