diff options
Diffstat (limited to 'sys-cluster/fence/files/fenced.rc')
-rwxr-xr-x | sys-cluster/fence/files/fenced.rc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-cluster/fence/files/fenced.rc b/sys-cluster/fence/files/fenced.rc index 68c7b6abbe09..e6d03aa27637 100755 --- a/sys-cluster/fence/files/fenced.rc +++ b/sys-cluster/fence/files/fenced.rc @@ -1,7 +1,7 @@ #!/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/fence/files/fenced.rc,v 1.4 2005/03/25 02:15:31 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/files/fenced.rc,v 1.5 2005/03/25 16:06:31 xmerlin Exp $ depend() { use net @@ -16,7 +16,7 @@ start() { umount_gfs_filesystems() { local sig retry - local remaining="$(awk '$3 ~ /gfs/ { print $2 }' /proc/mounts | sort -r)" + local remaining="$(awk '$3 == "gfs" { print $2 }' /proc/mounts)" if [ -n "${remaining}" ] then @@ -34,7 +34,7 @@ umount_gfs_filesystems() { umount ${remaining} &>/dev/null eend $? "Failed to unmount GFS filesystems" fi - remaining="$(awk '$3 ~ /gfs/ { if ($2 != "/") print $2 }' /proc/mounts | sort -r)" + remaining="$(awk '$3 == "gfs" { print $2 }' /proc/mounts)" [ -z "${remaining}" ] && break /bin/fuser -k -m ${sig} ${remaining} &>/dev/null sleep 5 |