diff options
Diffstat (limited to 'sys-cluster/dlm/files/dlm.rc')
-rwxr-xr-x | sys-cluster/dlm/files/dlm.rc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-cluster/dlm/files/dlm.rc b/sys-cluster/dlm/files/dlm.rc new file mode 100755 index 000000000000..620b4fe9b58b --- /dev/null +++ b/sys-cluster/dlm/files/dlm.rc @@ -0,0 +1,23 @@ +#!/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/dlm/files/dlm.rc,v 1.1 2005/03/22 13:39:42 xmerlin Exp $ + +depend() { + use net + need cman + provide cluster-locking-manager +} + +start() { + ebegin "Loading dlm module" + modprobe dlm + eend $? +} + +stop() { + ebegin "Removing dlm module" + modprobe -r dlm &>/dev/null + eend $? +} + |