summaryrefslogtreecommitdiff
path: root/sysutils/fcron/files/fcron.in
blob: 1c698563268e7b1b7c22ed1dad2b09cfbb2e1eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fcron
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
#
# fcron_enable (bool):	Set to NO by default.
#			Set it to YES to enable fcron.

. /etc/rc.subr

desc="Periodic command scheduler"
name=fcron
rcvar=fcron_enable

load_rc_config $name

command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"

run_rc_command "$1"