summaryrefslogtreecommitdiff
path: root/security/f-prot-antivirus6/files/fpmon.sh
blob: ea82731b7a96a0a9aa07963292155fd974075120 (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
#!@RCD_SCRIPTS_SHELL@
# $NetBSD: fpmon.sh,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $

# PROVIDE: fpmon
# REQUIRE: DAEMON fpscand

. /etc/rc.subr

name="fpmon"
rcvar=$name
conf="@PKG_SYSCONFDIR@/f-prot.conf"
command="@PREFIX@/@FPROTDIR@/fpmon"
required_files="${conf} ${command}"
start_cmd="fpmon_start"

fpmon_start()
{
	if [ -x ${command} ]; then
		${command} ${rc_flags}
	fi
}

load_rc_config $name
run_rc_command "$1"