Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/cron
| Show All 10 Lines | |||||
| name="cron" | name="cron" | ||||
| desc="Daemon to execute scheduled commands" | desc="Daemon to execute scheduled commands" | ||||
| rcvar="cron_enable" | rcvar="cron_enable" | ||||
| command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
| pidfile="/var/run/${name}.pid" | pidfile="/var/run/${name}.pid" | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: in the generic case it may need | |||||
| # access to more than a jails allows | |||||
| cron_svcj="NO" | |||||
| if checkyesno cron_dst | if checkyesno cron_dst | ||||
| then | then | ||||
| cron_flags="$cron_flags -s" | cron_flags="$cron_flags -s" | ||||
| fi | fi | ||||
| run_rc_command "$1" | run_rc_command "$1" | ||||