summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbabkin <babkin@FreeBSD.org>2003-12-25 23:29:19 +0000
committerbabkin <babkin@FreeBSD.org>2003-12-25 23:29:19 +0000
commite07ed5e22e50eebc3ecd6cf083a53d078f91b92a (patch)
tree62815ef4a7048d562126aa8c705c82d8806b7792 /etc
parent373c3cc2673a9f0b5b1736e5d3659488232b7794 (diff)
downloadFreeBSD-src-e07ed5e22e50eebc3ecd6cf083a53d078f91b92a.zip
FreeBSD-src-e07ed5e22e50eebc3ecd6cf083a53d078f91b92a.tar.gz
Added support for intelligent handling of DST transitions in cron.
reviewed by: imp
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rwxr-xr-xetc/rc.d/cron4
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 4146e30..dd60fe3 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -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.
diff --git a/etc/rc.d/cron b/etc/rc.d/cron
index 218ed23..d132f0f 100755
--- a/etc/rc.d/cron
+++ b/etc/rc.d/cron
@@ -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"
OpenPOWER on IntegriCloud