xref: /freebsd/libexec/rc/rc.d/cron (revision a90b9d0159070121c221b966469c3e36d912bf82)
1#!/bin/sh
2#
3#
4
5# PROVIDE: cron
6# REQUIRE: LOGIN FILESYSTEMS
7# BEFORE: securelevel
8# KEYWORD: shutdown
9
10. /etc/rc.subr
11
12name="cron"
13desc="Daemon to execute scheduled commands"
14rcvar="cron_enable"
15command="/usr/sbin/${name}"
16pidfile="/var/run/${name}.pid"
17
18load_rc_config $name
19
20# doesn't make sense to run in a svcj: in the generic case it may need
21# access to more than a jails allows
22cron_svcj="NO"
23
24if checkyesno cron_dst
25then
26	cron_flags="$cron_flags -s"
27fi
28run_rc_command "$1"
29