summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2007-10-28 17:07:06 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2007-10-28 17:07:06 +0000
commit99268792dc649609f83e47ca149caeb5b8266726 (patch)
tree306ec4db2ed10c1ae52865addfb766650b90c97d /sys-cluster
parentFixing Qt dependency for amd64. (diff)
downloadgentoo-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')
-rw-r--r--sys-cluster/drbd/ChangeLog6
-rw-r--r--sys-cluster/drbd/files/drbd-8.0.rc9
2 files changed, 12 insertions, 3 deletions
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog
index 55dfba8e7f54..7bbbd09b69e2 100644
--- a/sys-cluster/drbd/ChangeLog
+++ b/sys-cluster/drbd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/drbd
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.77 2007/10/25 09:27:45 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.78 2007/10/28 17:07:06 xmerlin Exp $
+
+ 28 Oct 2007; Christian Zoffoli <xmerlin@gentoo.org> files/drbd-8.0.rc:
+ Enhancement: now the init script promote DRBD devices to primary
+ role when enabled in drbd.conf, thanks to Francisco Javier <ffelix@sshinf.com>.
*drbd-0.7.25 (25 Oct 2007)
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
}