diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-06 00:21:58 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-06 00:21:58 +0000 |
commit | b717658289141606ce86f006aea3b04c1f01a2a1 (patch) | |
tree | 11d90bf2f278c72a0ec604e2a6ecba030fcdb284 /net-mgmt | |
parent | 67ac6e598d715488ef42d57d9aa87255a42da6ef (diff) | |
download | ports-b717658289141606ce86f006aea3b04c1f01a2a1.tar.gz ports-b717658289141606ce86f006aea3b04c1f01a2a1.zip |
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nsca/files/nsca.sh.in | 9 |
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 ed2776560832..bd78ef1f9b82 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" |