summaryrefslogtreecommitdiff
path: root/security/f-prot-antivirus6/files/fpscand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'security/f-prot-antivirus6/files/fpscand.sh')
-rw-r--r--security/f-prot-antivirus6/files/fpscand.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/security/f-prot-antivirus6/files/fpscand.sh b/security/f-prot-antivirus6/files/fpscand.sh
new file mode 100644
index 00000000000..f97d6a6ebc6
--- /dev/null
+++ b/security/f-prot-antivirus6/files/fpscand.sh
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: fpscand.sh,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $
+
+# PROVIDE: fpscand
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="fpscand"
+rcvar=$name
+conf="@PKG_SYSCONFDIR@/f-prot.conf"
+command="@PREFIX@/@FPROTDIR@/fpscand"
+required_files="${conf} ${command}"
+start_cmd="fpscand_start"
+
+fpscand_start()
+{
+ if [ -x ${command} ]; then
+ ${command} ${rc_flags}
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"