From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-nrpe/files: nrpe.xinetd.2 nrpe.init multiline.patch |
Date: | Thu, 23 Aug 2012 23:03:39 |
Message-Id: | 20120823230315.2E2FB204DE@flycatcher.gentoo.org |
1 | flameeyes 12/08/23 23:03:15 |
2 | |
3 | Added: nrpe.xinetd.2 nrpe.init |
4 | Removed: multiline.patch |
5 | Log: |
6 | Remove old; revision bump to cleanup install, improve init script, always install xinetd file as other packages do. Prepare for pkgmove. |
7 | |
8 | (Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 net-analyzer/nagios-nrpe/files/nrpe.xinetd.2 |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nrpe/files/nrpe.xinetd.2?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nrpe/files/nrpe.xinetd.2?rev=1.1&content-type=text/plain |
15 | |
16 | Index: nrpe.xinetd.2 |
17 | =================================================================== |
18 | /nrpe |
19 | server_args = -c /etc/nagios/nrpe.cfg --inetd |
20 | # only_from = 127.0.0.1 |
21 | disabled = yes |
22 | } |
23 | |
24 | |
25 | |
26 | 1.1 net-analyzer/nagios-nrpe/files/nrpe.init |
27 | |
28 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nrpe/files/nrpe.init?rev=1.1&view=markup |
29 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nrpe/files/nrpe.init?rev=1.1&content-type=text/plain |
30 | |
31 | Index: nrpe.init |
32 | =================================================================== |
33 | #!/sbin/runscript |
34 | # Copyright 1999-2012 Gentoo Foundation |
35 | # Distributed under the terms of the GNU General Public License v2 |
36 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/files/nrpe.init,v 1.1 2012/08/23 23:03:15 flameeyes Exp $ |
37 | |
38 | : ${CFGFILE:=/etc/nagios/nrpe.cfg} |
39 | |
40 | get_config() { |
41 | [ -f ${CFGFILE} ] || return 1 |
42 | |
43 | sed -n -e 's:^[ \t]*'$1'=\([^#]\+\).*:\1:p' \ |
44 | ${CFGFILE} |
45 | } |
46 | |
47 | extra_started_commands="reload" |
48 | |
49 | command=/usr/libexec/${SVCNAME} |
50 | command_args="-c ${CFGFILE} --daemon" |
51 | pidfile=$(get_config pid_file) |
52 | |
53 | depend() { |
54 | config ${CFGFILE} |
55 | need net |
56 | } |
57 | |
58 | reload() { |
59 | ebegin "Reloading ${SVCNAME}" |
60 | kill -HUP `cat $(get_config pid_file)` |
61 | eend $? |
62 | } |