rebuild trc6500-master-file package to limit conflicts with trc6500 packages
[debian6500.git] / master / etc / init.d / waitslaves
index 8347d2c59a638ebb2226f60a59e559a68a74f6ff..137e109604c3ba9187f36ebe3851f68b0f059635 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.sh /opt/trc6500/script/check_network.sh
+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