diff options
author | Martin Jackson <mjolnir@gentoo.org> | 2007-03-13 00:10:39 +0000 |
---|---|---|
committer | Martin Jackson <mjolnir@gentoo.org> | 2007-03-13 00:10:39 +0000 |
commit | 5d6001fde597222a65f70bc9b818149c5503511d (patch) | |
tree | 37a8df8796dab7d258e4304147ac5ca8cb92dcf6 /net-analyzer/nagios-nrpe | |
parent | Replaced text-markup by tex (text-markup split). (diff) | |
download | gentoo-2-5d6001fde597222a65f70bc9b818149c5503511d.tar.gz gentoo-2-5d6001fde597222a65f70bc9b818149c5503511d.tar.bz2 gentoo-2-5d6001fde597222a65f70bc9b818149c5503511d.zip |
Install nrpe init.d script to fix #170547
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-analyzer/nagios-nrpe')
-rw-r--r-- | net-analyzer/nagios-nrpe/ChangeLog | 11 | ||||
-rw-r--r-- | net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1-r1 (renamed from net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1) | 0 | ||||
-rw-r--r-- | net-analyzer/nagios-nrpe/files/nrpe | 36 | ||||
-rw-r--r-- | net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild (renamed from net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild) | 4 |
4 files changed, 48 insertions, 3 deletions
diff --git a/net-analyzer/nagios-nrpe/ChangeLog b/net-analyzer/nagios-nrpe/ChangeLog index 764c509944ed..a7b4ca98f595 100644 --- a/net-analyzer/nagios-nrpe/ChangeLog +++ b/net-analyzer/nagios-nrpe/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-analyzer/nagios-nrpe # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.37 2007/03/12 00:32:39 mjolnir Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.38 2007/03/13 00:10:39 mjolnir Exp $ + + 13 Mar 2007; Martin Jackson <mjolnir@gentoo.org> +files/nrpe, + -nagios-nrpe-2.7.1.ebuild, +nagios-nrpe-2.7.1-r1.ebuild: + Install nrpe init.d script to fix #170547 + +*nagios-nrpe-2.7.1-r1 (12 Mar 2007) + + 12 Mar 2007; <> nagios-nrpe-2.7.1-r1.ebuild files/digest-nagios-nrpe-2.7.1-r1 + # INSERT ENTRY HERE *nagios-nrpe-2.7.1 (12 Mar 2007) diff --git a/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1 b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1-r1 index acd049449cc0..acd049449cc0 100644 --- a/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1 +++ b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1-r1 diff --git a/net-analyzer/nagios-nrpe/files/nrpe b/net-analyzer/nagios-nrpe/files/nrpe new file mode 100644 index 000000000000..768d860a7b17 --- /dev/null +++ b/net-analyzer/nagios-nrpe/files/nrpe @@ -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" +} diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild index 79101255c0a8..3093312b5422 100644 --- a/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild +++ b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild,v 1.1 2007/03/12 00:32:39 mjolnir Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild,v 1.1 2007/03/13 00:10:39 mjolnir Exp $ inherit eutils toolchain-funcs @@ -68,7 +68,7 @@ src_install() { doexe src/check_nrpe contrib/nrpe_check_control exeinto /etc/init.d - newexe ${FILESDIR}/nrpe-${PV} nrpe + newexe ${FILESDIR}/nrpe nrpe cat << EOF > ${T}/55-nagios-revdep SEARCH_DIRS="/usr/nagios/bin /usr/nagios/libexec" |