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