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/ndoutils/files: ndo2db.init-nagios3 ndo2db.init
Date: Sat, 30 Oct 2010 14:15:54
Message-Id: 20101030141550.CD17220054@flycatcher.gentoo.org
1 dertobi123 10/10/30 14:15:50
2
3 Modified: ndo2db.init-nagios3
4 Removed: ndo2db.init
5 Log:
6 Fix init script (#313739)
7
8 (Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 net-analyzer/ndoutils/files/ndo2db.init-nagios3
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3?r1=1.2&r2=1.3
16
17 Index: ndo2db.init-nagios3
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ndo2db.init-nagios3 19 Jul 2008 15:08:25 -0000 1.2
24 +++ ndo2db.init-nagios3 30 Oct 2010 14:15:50 -0000 1.3
25 @@ -1,7 +1,7 @@
26 #!/sbin/runscript
27 -# Copyright 1999-2007 Gentoo Foundation
28 +# Copyright 1999-2010 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3,v 1.2 2008/07/19 15:08:25 dertobi123 Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3,v 1.3 2010/10/30 14:15:50 dertobi123 Exp $
32
33 depends() {
34 before nagios
35 @@ -10,13 +10,16 @@
36
37 start() {
38 ebegin "Starting ndo2db"
39 - start-stop-daemon --start --quiet --exec /usr/bin/ndo2db-3x \
40 + if [ -S /var/nagios/ndo.sock ] ; then
41 + rm -f /var/nagios/ndo.sock
42 + fi
43 + start-stop-daemon --start --quiet --exec /usr/bin/ndo2db \
44 -- -c /etc/nagios/ndo2db.cfg
45 eend $?
46 }
47
48 stop() {
49 ebegin "Stopping ndo2db"
50 - start-stop-daemon --stop --quiet --exec /usr/bin/ndo2db-3x
51 + start-stop-daemon --stop --quiet --exec /usr/bin/ndo2db
52 eend $?
53 }