summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <ramereth@gentoo.org>2006-04-27 01:11:39 +0000
committerLance Albertson <ramereth@gentoo.org>2006-04-27 01:11:39 +0000
commit4c77922a62a02de1d7a65e0b8ab479608cb87a9d (patch)
tree69e2cdd47fd0de15a652f324c7d5452bf9a1cdd1 /net-analyzer/nagios-nrpe/files
parentfixed failed merge (diff)
downloadgentoo-2-4c77922a62a02de1d7a65e0b8ab479608cb87a9d.tar.gz
gentoo-2-4c77922a62a02de1d7a65e0b8ab479608cb87a9d.tar.bz2
gentoo-2-4c77922a62a02de1d7a65e0b8ab479608cb87a9d.zip
version bump, stable on x86 (2.3), added reload to init script (2.5.1)
(Portage version: 2.0.54)
Diffstat (limited to 'net-analyzer/nagios-nrpe/files')
-rw-r--r--net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.5.11
-rw-r--r--net-analyzer/nagios-nrpe/files/nrpe-2.5.136
2 files changed, 37 insertions, 0 deletions
diff --git a/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.5.1 b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.5.1
new file mode 100644
index 000000000000..2561cdc2803b
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.5.1
@@ -0,0 +1 @@
+MD5 e083553deaf47a79fd23906d823afc59 nrpe-2.5.1.tar.gz 100382
diff --git a/net-analyzer/nagios-nrpe/files/nrpe-2.5.1 b/net-analyzer/nagios-nrpe/files/nrpe-2.5.1
new file mode 100644
index 000000000000..768d860a7b17
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/files/nrpe-2.5.1
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+
+opts="${opts} reload"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting nrpe"
+ start-stop-daemon --start --quiet --name nrpe \
+ --startas /usr/nagios/bin/nrpe \
+ -c nagios:nagios \
+ -- -c /etc/nagios/nrpe.cfg \
+ --daemon
+ eend $? "Failed to Start nrpe"
+}
+
+stop() {
+ ebegin "Stopping nrpe"
+ start-stop-daemon --stop --quiet -n nrpe
+ eend $? "Failed to Stop nrpe"
+}
+
+reload() {
+ ebegin "Reloading nrpe"
+ kill -HUP `pgrep nrpe | head -1`
+ eend $? "Failed to reload nrpe"
+}
+
+restart() {
+ ebegin "Restarting nrpe"
+ svc_stop
+ svc_start
+ eend $? "Failed to Restart nrpe"
+}