From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-nsca/files: nsca.init |
Date: | Tue, 21 Aug 2012 17:31:03 |
Message-Id: | 20120821173054.80EE420258@flycatcher.gentoo.org |
1 | flameeyes 12/08/21 17:30:54 |
2 | |
3 | Modified: nsca.init |
4 | Log: |
5 | Revision bump: inherit user eclass for creating the nagios user and group; don't drop to nagios:nagios through s-s-d, leave it to the daemon to do that, otherwise we don't get a pid_file; make sure that nsca is queued after icinga or nagios when starting the init script; add a crypt USE flag to depend on libmcrypt so that you can disable it. |
6 | |
7 | (Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.2 net-analyzer/nagios-nsca/files/nsca.init |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init?rev=1.2&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init?rev=1.2&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init?r1=1.1&r2=1.2 |
15 | |
16 | Index: nsca.init |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init,v |
19 | retrieving revision 1.1 |
20 | retrieving revision 1.2 |
21 | diff -u -r1.1 -r1.2 |
22 | --- nsca.init 18 Aug 2012 00:17:19 -0000 1.1 |
23 | +++ nsca.init 21 Aug 2012 17:30:54 -0000 1.2 |
24 | @@ -1,7 +1,7 @@ |
25 | #!/sbin/runscript |
26 | # Copyright 1999-2012 Gentoo Foundation |
27 | # Distributed under the terms of the GNU General Public License v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init,v 1.1 2012/08/18 00:17:19 flameeyes Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init,v 1.2 2012/08/21 17:30:54 flameeyes Exp $ |
30 | |
31 | get_pidfile() { |
32 | sed -n -e 's:^[ \t]*pid_file=\([^#]\+\).*:\1:p' \ |
33 | @@ -13,10 +13,10 @@ |
34 | command=/usr/libexec/${SVCNAME} |
35 | command_args="-c /etc/nagios/nsca.cfg --daemon" |
36 | pidfile=$(get_pidfile) |
37 | -start_stop_daemon_args="--user nagios:nagios" |
38 | |
39 | depend() { |
40 | need net |
41 | + use icinga nagios |
42 | } |
43 | |
44 | reload() { |