summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/gulm/files/gulm.rc')
-rwxr-xr-xsys-cluster/gulm/files/gulm.rc43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-cluster/gulm/files/gulm.rc b/sys-cluster/gulm/files/gulm.rc
new file mode 100755
index 000000000000..0e39475706f8
--- /dev/null
+++ b/sys-cluster/gulm/files/gulm.rc
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gulm/files/gulm.rc,v 1.1 2005/09/05 22:01:03 xmerlin Exp $
+
+depend() {
+ use net
+ need ccs
+ provide cluster-manager cluster-lock-manager
+}
+
+start() {
+# if grep -qE "<[[:space:]]*gulm([[:space:]]|[>]|$)" /etc/cluster/cluster.conf
+# then
+# die "<gulm> section detected in /etc/cluster/cluster.conf"
+# fi
+#
+# ebegin "Loading cman module"
+# modprobe cman
+# eend $?
+#
+# ebegin "Starting cman"
+# /sbin/cman_tool -t ${CMAN_CLUSTER_TIMEOUT} \
+# -w join ${CMAN_JOIN_OPTS}
+# eend $?
+#
+# # make sure that we are quorate?
+# if [ ${CMAN_QUORUM_TIMEOUT} -gt 0 ]
+# then
+# /sbin/cman_tool -t ${CMAN_QUORUM_TIMEOUT} -q wait
+# fi
+}
+
+stop() {
+# ebegin "Stopping cman"
+# /sbin/cman_tool -t ${CMAN_SHUTDOWN_TIMEOUT} -w leave > /dev/null
+# eend $?
+#
+# ebegin "Removing cman module"
+# modprobe -r cman
+# eend $?
+}
+