Gentoo Archives: gentoo-commits

From: "Alexys Jacob (ultrabug)" <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/corosync/files: corosync.initd
Date: Tue, 02 Dec 2014 14:55:57
Message-Id: 20141202145549.D73D9B5C9@oystercatcher.gentoo.org
1 ultrabug 14/12/02 14:55:49
2
3 Modified: corosync.initd
4 Log:
5 fix #488736
6
7 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
8
9 Revision Changes Path
10 1.3 sys-cluster/corosync/files/corosync.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?r1=1.2&r2=1.3
15
16 Index: corosync.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- corosync.initd 17 Nov 2010 07:07:03 -0000 1.2
23 +++ corosync.initd 2 Dec 2014 14:55:49 -0000 1.3
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 -# Copyright 1999-2010 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.2 2010/11/17 07:07:03 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.3 2014/12/02 14:55:49 ultrabug Exp $
31
32 depend() {
33 need net
34 @@ -9,6 +9,7 @@
35 }
36
37 start() {
38 + configtest || return 1
39 ebegin "Starting Corosync Cluster Engine"
40 start-stop-daemon --start -q --exec /usr/sbin/corosync \
41 --pidfile /var/run/corosync.pid --make-pidfile --background \
42 @@ -21,3 +22,9 @@
43 start-stop-daemon --stop -q --pidfile /var/run/corosync.pid
44 eend $?
45 }
46 +
47 +configtest() {
48 + ebegin "Checking corosync configuration"
49 + test -f /etc/corosync/corosync.confs
50 + eend $? "failed, please create the corosync configuration file"
51 +}