Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-nsca/files: nsca-nagios3
Date: Sun, 27 Apr 2008 18:21:49
Message-Id: E1JqBVS-0005Ja-I9@stork.gentoo.org
1 dertobi123 08/04/27 18:21:46
2
3 Added: nsca-nagios3
4 Log:
5 bump for nagios-3
6 (Portage version: 2.1.5_rc6)
7
8 Revision Changes Path
9 1.1 net-analyzer/nagios-nsca/files/nsca-nagios3
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-nsca/files/nsca-nagios3?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-nsca/files/nsca-nagios3?rev=1.1&content-type=text/plain
13
14 Index: nsca-nagios3
15 ===================================================================
16 #!/sbin/runscript
17
18 opts="${opts} reload"
19
20 depend() {
21 need net
22 }
23
24 start() {
25 ebegin "Starting nsca"
26 start-stop-daemon --start --quiet --name nsca \
27 --startas /usr/bin/nsca \
28 -c nagios:nagios \
29 -- -c /etc/nagios/nsca.cfg \
30 --daemon
31 eend $? "Failed to Start nsca"
32 }
33
34 stop() {
35 ebegin "Stopping nsca"
36 start-stop-daemon --stop --quiet -n nsca
37 eend $? "Failed to Stop nsca"
38 }
39
40 reload() {
41 ebegin "Reloading nsca"
42 kill -HUP `pgrep nsca`
43 eend $? "Failed to reload nsca"
44 }
45
46 restart() {
47 ebegin "Restarting nsca"
48 svc_stop
49 svc_start
50 eend $? "Failed to Restart nsca"
51 }
52
53
54
55 --
56 gentoo-commits@l.g.o mailing list