blob: 627f3f85c1913d6f49ae0c8dc16453f0f3b2f61f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
# PROVIDE: incrond
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to
# enable incrond:
#
# incrond_enable (bool): Set to NO by default. Set it to YES to
# enable incrond.
# incrond_config (string): Set to the standard config file path by
# default.
#
. /etc/rc.subr
name="incrond"
rcvar=incrond_enable
load_rc_config $name
: ${incrond_enable:=NO}
: ${incrond_config:=%%PREFIX%%/etc/incron.conf}
command="%%PREFIX%%/sbin/${name}"
required_files="${incrond_config}"
run_rc_command "$1"
|