commit:     e353d6ee8cf74f140cb7e0ac9940da3c195f475b
Author:     Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail 
<DOT> com>
AuthorDate: Fri Feb 10 15:46:23 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Feb 10 22:33:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e353d6ee

sys-cluster/dlm: remove unused file

Closes: https://github.com/gentoo/gentoo/pull/3900

 sys-cluster/dlm/files/dlm.rc | 53 --------------------------------------------
 1 file changed, 53 deletions(-)

diff --git a/sys-cluster/dlm/files/dlm.rc b/sys-cluster/dlm/files/dlm.rc
deleted file mode 100644
index 3882cd1675..0000000000
--- 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}
-
-}
-

Reply via email to