Added support for intelligent handling of DST transitions in cron.

reviewed by: imp
This commit is contained in:
Sergey Babkin 2003-12-25 23:29:19 +00:00
parent 8c27747768
commit dfa244fc22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123841
2 changed files with 5 additions and 0 deletions

View File

@ -398,6 +398,7 @@ sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
cron_enable="YES" # Run the periodic job daemon.
cron_program="/usr/sbin/cron" # Which cron executable to run (if enabled).
cron_dst="YES" # Handle DST transitions intelligently (YES/NO)
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.

View File

@ -17,4 +17,8 @@ command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
if checkyesno cron_dst
then
cron_flags="$cron_flags -s"
fi
run_rc_command "$1"