xref: /freebsd/libexec/rc/rc.d/cron (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: cron
7# REQUIRE: LOGIN FILESYSTEMS
8# BEFORE: securelevel
9# KEYWORD: shutdown
10
11. /etc/rc.subr
12
13name="cron"
14desc="Daemon to execute scheduled commands"
15rcvar="cron_enable"
16command="/usr/sbin/${name}"
17pidfile="/var/run/${name}.pid"
18
19load_rc_config $name
20if checkyesno cron_dst
21then
22	cron_flags="$cron_flags -s"
23fi
24run_rc_command "$1"
25