diff options
author | Dean Bailey <alron@gentoo.org> | 2003-06-18 00:16:01 +0000 |
---|---|---|
committer | Dean Bailey <alron@gentoo.org> | 2003-06-18 00:16:01 +0000 |
commit | d41bcc7d370dfce5f70fb296db33e07aac3990ef (patch) | |
tree | ba15f9e69ed7051c79eec0edb3a9afd4e198a44e /net-analyzer/nagios-nsca/files | |
parent | nagios-nsca-2.3 bugfix (diff) | |
download | gentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.tar.gz gentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.tar.bz2 gentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.zip |
nagios-nsca-2.3 bugfix
Diffstat (limited to 'net-analyzer/nagios-nsca/files')
-rw-r--r-- | net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 | 1 | ||||
-rw-r--r-- | net-analyzer/nagios-nsca/files/nsca-2.3 | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 b/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 new file mode 100644 index 000000000000..d6ef7d97b284 --- /dev/null +++ b/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 @@ -0,0 +1 @@ +MD5 46723112e2a47bfbd1323a3b37c99896 nsca-2.3.tar.gz 54220 diff --git a/net-analyzer/nagios-nsca/files/nsca-2.3 b/net-analyzer/nagios-nsca/files/nsca-2.3 new file mode 100644 index 000000000000..60f813f2c70e --- /dev/null +++ b/net-analyzer/nagios-nsca/files/nsca-2.3 @@ -0,0 +1,28 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting nsca" + start-stop-daemon --start --quiet --name nsca \ + --startas /usr/nagios/bin/nsca \ + -c nagios:nagios \ + -- -c /etc/nagios/nsca.cfg \ + --daemon + eend $? "Failed to Start nsca" +} + +stop() { + ebegin "Stopping nsca" + start-stop-daemon --stop --quiet -n nsca + eend $? "Failed to Stop nsca" +} + +restart() { + ebegin "Restarting nsca" + svc_stop + svc_start + eend $? "Failed to Restart nsca" +} |