From: | "Tobias Scherbaum (dertobi123)" <dertobi123@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/pnp4nagios/files: npcd |
Date: | Tue, 27 Oct 2009 19:40:45 |
Message-Id: | E1N2ruN-0007FJ-Q9@stork.gentoo.org |
1 | dertobi123 09/10/27 19:40:43 |
2 | |
3 | Added: npcd |
4 | Log: |
5 | Version bump (#290758) |
6 | (Portage version: 2.2_rc46/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-analyzer/pnp4nagios/files/npcd |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/pnp4nagios/files/npcd?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/pnp4nagios/files/npcd?rev=1.1&content-type=text/plain |
13 | |
14 | Index: npcd |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2009 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/pnp4nagios/files/npcd,v 1.1 2009/10/27 19:40:43 dertobi123 Exp $ |
20 | |
21 | opts="${opts} reload" |
22 | |
23 | depend() { |
24 | need net nagios |
25 | } |
26 | |
27 | start() { |
28 | ebegin "Starting npcd" |
29 | start-stop-daemon --start --exec /usr/bin/npcd \ |
30 | -- -f /etc/pnp/npcd.cfg \ |
31 | -d |
32 | eend $? "Failed to Start npcd" |
33 | } |
34 | |
35 | stop() { |
36 | ebegin "Stopping npcd" |
37 | start-stop-daemon --stop --quiet -n npcd |
38 | eend $? "Failed to Stop npcd" |
39 | } |
40 | |
41 | reload() { |
42 | ebegin "Reloading npcd" |
43 | kill -HUP `pgrep npcd` |
44 | eend $? "Failed to reload npcd" |
45 | } |
46 | |
47 | restart() { |
48 | ebegin "Restarting npcd" |
49 | svc_stop |
50 | svc_start |
51 | eend $? "Failed to Restart npcd" |
52 | } |