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