Whamcloud - gitweb
bump version to 1.8.4.52
[fs/lustre-release.git] / lustre / scripts / lustrefs
index af2e675..18c32b1 100644 (file)
 #
 ### 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: 
-# Default-Start: 
+# Default-Start: 3 5
 # 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
@@ -39,6 +38,9 @@ if [ -f /lib/lsb/init-functions ]; then
    . /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
 
@@ -85,7 +87,7 @@ case "$1" in
                        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