diff options
author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2017-02-10 16:46:23 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-02-10 23:33:06 +0100 |
commit | e353d6ee8cf74f140cb7e0ac9940da3c195f475b (patch) | |
tree | 5adb774c3e43bc869e7416fcf61a07efc3c660a9 | |
parent | sys-cluster/csync2: remove unused patch (diff) | |
download | gentoo-e353d6ee8cf74f140cb7e0ac9940da3c195f475b.tar.gz gentoo-e353d6ee8cf74f140cb7e0ac9940da3c195f475b.tar.bz2 gentoo-e353d6ee8cf74f140cb7e0ac9940da3c195f475b.zip |
sys-cluster/dlm: remove unused file
Closes: https://github.com/gentoo/gentoo/pull/3900
-rw-r--r-- | sys-cluster/dlm/files/dlm.rc | 53 |
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} - -} - |