xref: /freebsd/libexec/rc/rc.d/cron (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
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
19if checkyesno cron_dst
20then
21	cron_flags="$cron_flags -s"
22fi
23run_rc_command "$1"
24