Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bump version to 1.8.4.52
[fs/lustre-release.git]
/
lustre
/
scripts
/
lustrefs
diff --git
a/lustre/scripts/lustrefs
b/lustre/scripts/lustrefs
index
af2e675
..
18c32b1
100644
(file)
--- a/
lustre/scripts/lustrefs
+++ b/
lustre/scripts/lustrefs
@@
-14,15
+14,14
@@
#
### BEGIN INIT INFO
# Provides: lustrefs
#
### BEGIN INIT INFO
# Provides: lustrefs
-# Required-Start: $network
-# Required-Stop: $network
+# Required-Start: $network
$remote_fs +sshd +lustre
+# Required-Stop: $network
$remote_fs
# Should-Start:
# Should-Stop:
# Should-Start:
# Should-Stop:
-# Default-Start:
+# Default-Start:
3 5
# Default-Stop: 0 1 2 6
# Short-Description: Mounts and unmounts all Lustre mount points.
### END INIT INFO
# Default-Stop: 0 1 2 6
# Short-Description: Mounts and unmounts all Lustre mount points.
### END INIT INFO
-## Provides: $local_fs $remote_fs
# Source function library.
if [ -f /etc/init.d/functions ]; then
# Source function library.
if [ -f /etc/init.d/functions ]; then
@@
-39,6
+38,9
@@
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
fi
. /lib/lsb/init-functions
fi
+[ -x /sbin/fuser ] && FUSER=/sbin/fuser
+[ -x /bin/fuser ] && FUSER=/bin/fuser
+
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
@@
-85,7
+87,7
@@
case "$1" in
sleep 2
remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^lustre/ && $2 != "/" {print $2}' /proc/mounts`
[ -z "$remaining" ] && break
sleep 2
remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^lustre/ && $2 != "/" {print $2}' /proc/mounts`
[ -z "$remaining" ] && break
-
/sbin/fuser
-k -m $sig $remaining >/dev/null
+
$FUSER
-k -m $sig $remaining >/dev/null
sleep 5
retry=$(($retry - 1))
sig=-9
sleep 5
retry=$(($retry - 1))
sig=-9