diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2007-10-28 17:07:06 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2007-10-28 17:07:06 +0000 |
commit | 99268792dc649609f83e47ca149caeb5b8266726 (patch) | |
tree | 306ec4db2ed10c1ae52865addfb766650b90c97d /sys-cluster/drbd/files | |
parent | Fixing Qt dependency for amd64. (diff) | |
download | gentoo-2-99268792dc649609f83e47ca149caeb5b8266726.tar.gz gentoo-2-99268792dc649609f83e47ca149caeb5b8266726.tar.bz2 gentoo-2-99268792dc649609f83e47ca149caeb5b8266726.zip |
Enhancement: now the init script promote DRBD devices to primary role when enabled in drbd.conf, thanks to Francisco Javier <ffelix@sshinf.com>.
(Portage version: 2.1.3.9)
Diffstat (limited to 'sys-cluster/drbd/files')
-rw-r--r-- | sys-cluster/drbd/files/drbd-8.0.rc | 9 |
1 files changed, 7 insertions, 2 deletions
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 } |