summaryrefslogtreecommitdiff
path: root/sysutils/filewatcherd/files/filewatcherd.in
blob: 5925a9e6a48db5e237f8fd35d0a5885536e7f758 (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
25
26
27
28
#!/bin/sh

# PROVIDE: filewatcherd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable filewatcherd:
#
# filewatcherd_enable (bool):   Set it to "YES" to enable filewatcherd
#                               Default is "NO".
# filewatcherd_conf (path):     Set full path to config file.
#                               Default is "%%PREFIX%%/etc/watchtab".

. /etc/rc.subr

name=filewatcherd
rcvar=filewatcherd_enable

load_rc_config $name

: ${filewatcherd_enable:=NO}
: ${filewatcherd_conf="%%PREFIX%%/etc/watchtab"}

command=%%PREFIX%%/sbin/filewatcherd
command_args="${filewatcherd_conf}"
required_files=${filewatcherd_conf}

run_rc_command "$1"