blob: 744943d8c3e5b52fb7e24b6ba6d0bbc7b7010f69 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: scannedonly
# REQUIRE: LOGIN clamd
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable the scannedonly daemon:
#
# scannedonly_clamav_enable="YES"
# scannedonly_clamav_flags="<set as needed>"
#
# See scannedonlyd_clamav(1) for flags
#
. /etc/rc.subr
name=scannedonly_clamav
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/scannedonlyd_clamav
pidfile=/var/run/scannedonlyd_clamav.pid
command_args="--pidfile ${pidfile}"
# read settings, set default values
load_rc_config "$name"
: ${scannedonly_clamav_enable="NO"}
run_rc_command "$1"
|