aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nsca
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-11-06 08:21:58 +0800
committeralepulver <alepulver@FreeBSD.org>2006-11-06 08:21:58 +0800
commit36be32c1db339f4c9bdc031fc312e83ffc76d679 (patch)
treeeaeb06b570329284fa88f9c38511cd7608be8a34 /net-mgmt/nsca
parent9084e158348f310c63f67d1ebd301fed43502110 (diff)
downloadfreebsd-ports-graphics-36be32c1db339f4c9bdc031fc312e83ffc76d679.tar.gz
freebsd-ports-graphics-36be32c1db339f4c9bdc031fc312e83ffc76d679.tar.zst
freebsd-ports-graphics-36be32c1db339f4c9bdc031fc312e83ffc76d679.zip
- Fix rc.d script.
PR: ports/104906 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
Diffstat (limited to 'net-mgmt/nsca')
-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"