aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/scanlogd/files/scanlogd.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/security/scanlogd/files/scanlogd.in b/security/scanlogd/files/scanlogd.in
index 532249fcfcb3..515f20a76b70 100644
--- a/security/scanlogd/files/scanlogd.in
+++ b/security/scanlogd/files/scanlogd.in
@@ -4,22 +4,21 @@
# $FreeBSD$
# PROVIDE: scanlogd
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
+# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable scanlogd:
# scanlogd_enable="YES"
# scanlogd_flags="<set as needed>"
-scanlogd_enable=${scanlogd_enable:-"NO"} # Enable scanlogd
-
. %%RC_SUBR%%
name="scanlogd"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/${name}"
-required_files=""
load_rc_config $name
+
+: ${scanlogd_enable-"NO"} # Enable scanlogd
+
run_rc_command "$1"