summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2007-03-09 16:26:14 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2007-03-09 16:26:14 +0000
commit867bf0b38fd4e6d2d3e6eeb708f9a4c8f3b7f6b7 (patch)
tree1892ee9002c0f55b2f69a7e4a9923c6f2dbae308 /sys-cluster
parentUpdated to use new gkrellm-plugin eclass (diff)
downloadgentoo-2-867bf0b38fd4e6d2d3e6eeb708f9a4c8f3b7f6b7.tar.gz
gentoo-2-867bf0b38fd4e6d2d3e6eeb708f9a4c8f3b7f6b7.tar.bz2
gentoo-2-867bf0b38fd4e6d2d3e6eeb708f9a4c8f3b7f6b7.zip
Added qdiskd init script.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/cman/ChangeLog6
-rw-r--r--sys-cluster/cman/cman-1.03.00.ebuild4
-rw-r--r--sys-cluster/cman/cman-1.04.00.ebuild4
-rwxr-xr-xsys-cluster/cman/files/qdiskd.rc23
4 files changed, 34 insertions, 3 deletions
diff --git a/sys-cluster/cman/ChangeLog b/sys-cluster/cman/ChangeLog
index 8c28eafba8af..278dd5a33317 100644
--- a/sys-cluster/cman/ChangeLog
+++ b/sys-cluster/cman/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/cman
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/ChangeLog,v 1.31 2007/03/09 11:01:30 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/ChangeLog,v 1.32 2007/03/09 16:26:14 xmerlin Exp $
+
+ 09 Mar 2007; Christian Zoffoli <xmerlin@gentoo.org> +files/qdiskd.rc,
+ cman-1.03.00.ebuild, cman-1.04.00.ebuild:
+ Added qdiskd init script.
*cman-1.04.00 (03 Mar 2007)
diff --git a/sys-cluster/cman/cman-1.03.00.ebuild b/sys-cluster/cman/cman-1.03.00.ebuild
index cb6232c22d32..a71c7c950e5e 100644
--- a/sys-cluster/cman/cman-1.03.00.ebuild
+++ b/sys-cluster/cman/cman-1.03.00.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.03.00.ebuild,v 1.3 2007/03/09 11:01:30 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.03.00.ebuild,v 1.4 2007/03/09 16:26:14 xmerlin Exp $
inherit eutils
@@ -41,6 +41,8 @@ src_install() {
newinitd ${FILESDIR}/${PN}.rc ${PN} || die
newconfd ${FILESDIR}/${PN}.conf ${PN} || die
+ newinitd ${FILESDIR}/qdiskd.rc qdiskd || die
+
keepdir /etc/cluster || die
}
diff --git a/sys-cluster/cman/cman-1.04.00.ebuild b/sys-cluster/cman/cman-1.04.00.ebuild
index 9e0ec5a7827b..36397542964e 100644
--- a/sys-cluster/cman/cman-1.04.00.ebuild
+++ b/sys-cluster/cman/cman-1.04.00.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.04.00.ebuild,v 1.1 2007/03/09 11:01:30 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.04.00.ebuild,v 1.2 2007/03/09 16:26:14 xmerlin Exp $
inherit eutils
@@ -41,6 +41,8 @@ src_install() {
newinitd ${FILESDIR}/${PN}.rc ${PN} || die
newconfd ${FILESDIR}/${PN}.conf ${PN} || die
+ newinitd ${FILESDIR}/qdiskd.rc qdiskd || die
+
keepdir /etc/cluster || die
}
diff --git a/sys-cluster/cman/files/qdiskd.rc b/sys-cluster/cman/files/qdiskd.rc
new file mode 100755
index 000000000000..8fd777bc790f
--- /dev/null
+++ b/sys-cluster/cman/files/qdiskd.rc
@@ -0,0 +1,23 @@
+#!/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/cman/files/qdiskd.rc,v 1.1 2007/03/09 16:26:14 xmerlin Exp $
+
+depend() {
+ use net
+ need cluster-manager
+}
+
+start() {
+ ebegin "Starting the Quorum Disk Daemon"
+ start-stop-daemon --start --quiet --exec /sbin/qdiskd -- -Q
+ eend $? "Failed to start qdiskd"
+}
+
+stop() {
+ ebegin "Stopping the Quorum Disk Daemon"
+
+ start-stop-daemon --stop --pidfile /var/run/qdiskd.pid
+ eend $? "Failed to stop qdiskd"
+}
+