Whamcloud - gitweb
- add things to /etc/modules.conf | /etc/modprobe.conf
authorjacob <jacob>
Thu, 7 Jul 2005 21:47:47 +0000 (21:47 +0000)
committerjacob <jacob>
Thu, 7 Jul 2005 21:47:47 +0000 (21:47 +0000)
 - tweaks to init scripts for SLES 9

lustre/scripts/lustre
lustre/scripts/lustrefs

index b6398c1..79a54e7 100755 (executable)
 # pidfile: /var/run/lustre.pid
 ### BEGIN INIT INFO
 # Provides: lustre
-# Required-Start:
-# Required-Stop: 
-# Should-Start: scance
-# Should-Stop: scance
+# Required-Start: $network
+# Required-Stop: $network
+# Should-Start:
+# Should-Stop:
 # Default-Start: 
 # Default-Stop: 0 1 2 6
 # Short-Description: Lustre Lite network File System.
index af2e675..56cf7ec 100644 (file)
 #
 ### BEGIN INIT INFO
 # Provides: lustrefs
-# Required-Start: $network
-# Required-Stop: $network
+# Required-Start: $network $remote_fs
+# 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