diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2005-03-19 22:04:36 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2005-03-19 22:04:36 +0000 |
commit | 9f537953deec3b49c86da606f8ee1c2fa49ecf11 (patch) | |
tree | aaeae9dfa7d323aacb6b43e60a97daf8d2c4046a /sys-fs/gfs/files | |
parent | added gentoo compliant init (diff) | |
download | historical-9f537953deec3b49c86da606f8ee1c2fa49ecf11.tar.gz historical-9f537953deec3b49c86da606f8ee1c2fa49ecf11.tar.bz2 historical-9f537953deec3b49c86da606f8ee1c2fa49ecf11.zip |
fixed some deps, changed fence option, new init
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-fs/gfs/files')
-rwxr-xr-x | sys-fs/gfs/files/gfs | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/sys-fs/gfs/files/gfs b/sys-fs/gfs/files/gfs index 243171c26850..b06319b41bec 100755 --- a/sys-fs/gfs/files/gfs +++ b/sys-fs/gfs/files/gfs @@ -1,11 +1,13 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-fs/gfs/files/gfs,v 1.1 2005/03/19 17:32:19 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/gfs/files/gfs,v 1.2 2005/03/19 22:04:36 xmerlin Exp $ depend() { provide cluster need net + need ccs fenced + after cman use dns logger } @@ -22,45 +24,22 @@ start() { checkconfig || return $? einfo "Starting gfs cluster:" + ebegin "Loading needed kernel modules" - ebegin "Loading needed kernel modules" - - if [ ! -f /proc/cluster/lock_dlm ]; then - modprobe lock_dlm - fi + if [ ! -f /proc/cluster/lock_dlm ]; then + modprobe lock_dlm + fi if [ ! -f /proc/fs/gfs ]; then modprobe gfs fi eend $? "Failed to load needed kernel modules" - ebegin "Starting ccsd" - start-stop-daemon --start --quiet --pidfile /var/run/ccsd.pid \ - --startas /sbin/ccsd - sleep 2 - eend $? "Failed to start ccsd" - - ebegin "Joining the cluster" - /sbin/cman_tool join - eend $? "Failed to join the cluster" - - ebegin "Joining the fence domain (in 120 seconds)" - /sbin/fence_tool join -t 120 - eend $? "Failed to join the fence domain" } stop() { einfo "Stopping gfs cluster:" - - ebegin "Leaving the fence domain" - /sbin/fence_tool leave - eend $? "Failed to leave the fence domain" - - ebegin "Leaving the cluster" - sleep 2 - /sbin/cman_tool leave - eend $? "Failed to leave the cluster" - - ebegin "Stopping ccsd" - killall -9 ccsd - eend $? "Failed to stop ccsd" + ebegin "Removing gfs module" + modprobe -r gfs &>/dev/null + eend $? + } |