From 99268792dc649609f83e47ca149caeb5b8266726 Mon Sep 17 00:00:00 2001 From: Christian Zoffoli Date: Sun, 28 Oct 2007 17:07:06 +0000 Subject: Enhancement: now the init script promote DRBD devices to primary role when enabled in drbd.conf, thanks to Francisco Javier . (Portage version: 2.1.3.9) --- sys-cluster/drbd/files/drbd-8.0.rc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys-cluster/drbd/files') diff --git a/sys-cluster/drbd/files/drbd-8.0.rc b/sys-cluster/drbd/files/drbd-8.0.rc index a19b7df26231..1b0d430cbcbf 100644 --- a/sys-cluster/drbd/files/drbd-8.0.rc +++ b/sys-cluster/drbd/files/drbd-8.0.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.2 2007/07/03 14:55:13 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.3 2007/10/28 17:07:06 xmerlin Exp $ opts="${opts} reload" @@ -99,8 +99,13 @@ start() { einfon "Waiting for connection " $DRBDADM wait-con-int - echo ret=$? + echo + + einfon "Become primary if configured " + $DRBDADM sh-b-pri all + echo + eend $ret return $ret } -- cgit v1.2.3-65-gdbad