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>
This commit is contained in:
Doug Barton 2001-01-21 20:57:38 +00:00
parent a448b62ac9
commit f8c1282a0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71340
3 changed files with 15 additions and 1 deletions

View File

@ -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).

2
etc/rc
View File

@ -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

View File

@ -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