summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-cluster/dlm/files/dlm.rc53
1 files changed, 0 insertions, 53 deletions
diff --git a/sys-cluster/dlm/files/dlm.rc b/sys-cluster/dlm/files/dlm.rc
deleted file mode 100644
index 3882cd1675ac..000000000000
--- a/sys-cluster/dlm/files/dlm.rc
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- use net
- need cluster-manager
- provide cluster-locking-manager
-}
-
-load_modules() {
- local module modules
- modules=$1
-
- for module in ${modules}; do
- ebegin "Loading ${module} kernel module"
- modprobe ${module}
- eend $? "Failed to load ${module} kernel module"
- done
-}
-
-unload_modules() {
- local module modules
- modules=$1
-
- for module in ${modules}; do
- ebegin "Unloading ${module} kernel module"
- modprobe -r ${module}
- eend $? "Failed to unload ${module} kernel module"
- done
-}
-
-start() {
- ebegin "Loading dlm module"
- load_modules dlm
- eend $?
-}
-
-stop() {
-
- local modules
-
- if [ -d /proc/cluster/lock_dlm ]; then
- modules="${modules} lock_dlm"
- fi
- if [ -d /proc/cluster/config/dlm ]; then
- modules="${modules} dlm"
- fi
- unload_modules ${modules}
-
-}
-