xref: /freebsd/libexec/rc/rc.d/cron (revision 22d7dd834bc5cd189810e414701e3ad1e98102e4)
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