aboutsummaryrefslogtreecommitdiff
path: root/security/f-protd/files/fprotd.sh.in
blob: 9d0c306a81b672838305fd0d795562760f68736a (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
30
31
32
33
34
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fprotd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# fprotd_enable="YES"
#

. /etc/rc.subr

name=fprotd
rcvar=`set_rcvar`
start_precmd="fprotd_precmd"
command="%%PREFIX%%/f-prot/f-protd"
command_args="> /dev/null 2>&1"

required_files="/etc/f-prot.conf"

load_rc_config ${name}

: ${fprotd_enable=NO}
: ${fprotd_virus_defs=%%PREFIX%%/f-prot}

fprotd_precmd()
{
	rc_flags="--background --defpath ${fprotd_virus_defs} ${fprotd_flags}"
}

run_rc_command "$1"