correct service
[debian6500.git] / master / etc / init.d / waitslaves
index 8347d2c59a638ebb2226f60a59e559a68a74f6ff..ec6fab0928967fdc906cc81f26def56ebd673e3c 100755 (executable)
@@ -11,20 +11,22 @@ VER=1.0
 # Provides:          waitslaves
 # Required-Start:    $network $sshd isc-dhcp-server atftpd nfs-kernel-server wakeonlan etherwake ipmiwake
 # Required-Stop:
-# Should-Start:
-# Default-Start:     S
-# Default-Stop:      
+# Should-Start:      
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
 # Short-Description: Wait cluster slave blades
 # Description:       Wait for all cluster slave blades are ready for running
 ### END INIT INFO
 
 ENABLE="yes"
-SCRIPT=/opt/trc6500/script/check_network.sh
+SCRIPTS="/opt/script/check_network /opt/trc6500/script/check_network"
+SCRIPT=
 TIMEOUT=360
 
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 [ -f /etc/default/waitslaves ] && . /etc/default/waitslaves
-[ -x $SCRIPT ] || exit 1
+for s in $SCRIPTS; do [ -x $s ] && SCRIPT=$s; done
+[ -x "$SCRIPT" ] || exit 1
 [ "$ENABLE" = "yes" ] || exit 0
 
 . /lib/lsb/init-functions