ultrabug 14/12/02 14:55:49 Modified: corosync.initd Log: fix #488736 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Revision Changes Path 1.3 sys-cluster/corosync/files/corosync.initd file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/corosync/files/corosync.initd?r1=1.2&r2=1.3 Index: corosync.initd =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- corosync.initd 17 Nov 2010 07:07:03 -0000 1.2 +++ corosync.initd 2 Dec 2014 14:55:49 -0000 1.3 @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.2 2010/11/17 07:07:03 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.3 2014/12/02 14:55:49 ultrabug Exp $ depend() { need net @@ -9,6 +9,7 @@ } start() { + configtest || return 1 ebegin "Starting Corosync Cluster Engine" start-stop-daemon --start -q --exec /usr/sbin/corosync \ --pidfile /var/run/corosync.pid --make-pidfile --background \ @@ -21,3 +22,9 @@ start-stop-daemon --stop -q --pidfile /var/run/corosync.pid eend $? } + +configtest() { + ebegin "Checking corosync configuration" + test -f /etc/corosync/corosync.confs + eend $? "failed, please create the corosync configuration file" +}
