summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/defaults/rc.conf2
-rw-r--r--etc/rc2
-rw-r--r--share/man/man5/rc.conf.512
3 files changed, 15 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
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index 4eeebb8..1f7d16f 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -1302,6 +1302,18 @@ is set to
then run the
.Xr cron 8
daemon at system boot time.
+.It Ar cron_program
+(str) path to
+.Xr cron 8
+(default
+.Pa /usr/sbin/cron ) .
+.It Ar cron_flags
+(str) if
+.Ar cron_enable
+is set to
+.Ar YES ,
+these are the flags to pass to
+.Xr cron 8 .
.It Ar lpd_program
(str) path to
.Xr lpd 8
OpenPOWER on IntegriCloud