aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/nsca/files/nsca.sh.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/net-mgmt/nsca/files/nsca.sh.in b/net-mgmt/nsca/files/nsca.sh.in
index ed277656083..bd78ef1f9b8 100644
--- a/net-mgmt/nsca/files/nsca.sh.in
+++ b/net-mgmt/nsca/files/nsca.sh.in
@@ -12,10 +12,9 @@
name="nsca"
rcvar=`set_rcvar`
-command="%%PREFIX%%/libexec/nagios/nsca"
-pidfile="/var/spool/nagios/nsca.lock"
-nsca_user="nagios"
-extra_commands="restart"
+command="%%PREFIX%%/sbin/nsca"
+pidfile="/var/run/nsca.pid"
+extra_commands=reload
nsca_enable=${nsca_enable:-"NO"}
nsca_flags=${nsca_flags:-"--single"}
@@ -24,6 +23,6 @@ nsca_configfile=${nsca_configfile:-"%%PREFIX%%/etc/nagios/nsca.cfg"}
load_rc_config "${name}"
required_files="${nsca_configfile}"
-command_args="-c ${nsca_configfile} ${nsca_flags}"
+command_args="-c ${nsca_configfile}"
run_rc_command "$1"