Soft'N'Design Software
/
projects
/
debian6500.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change version
[debian6500.git]
/
master
/
etc
/
init.d
/
waitslaves
diff --git
a/master/etc/init.d/waitslaves
b/master/etc/init.d/waitslaves
index 2354742817aa4c12f0a946bf77a9970dc90201fc..ec6fab0928967fdc906cc81f26def56ebd673e3c 100755
(executable)
--- a/
master/etc/init.d/waitslaves
+++ b/
master/etc/init.d/waitslaves
@@
-9,9
+9,9
@@
VER=1.0
### BEGIN INIT INFO
# Provides: waitslaves
### BEGIN INIT INFO
# Provides: waitslaves
-# Required-Start: $network $sshd isc-dhcp-server atftpd nfs-kernel-server wakeonlan etherwake
+# Required-Start: $network $sshd isc-dhcp-server atftpd nfs-kernel-server wakeonlan etherwake
ipmiwake
# Required-Stop:
# Required-Stop:
-# Should-Start:
+# Should-Start:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Wait cluster slave blades
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Wait cluster slave blades
@@
-19,19
+19,21
@@
VER=1.0
### END INIT INFO
ENABLE="yes"
### 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
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
do_start () {
[ "$ENABLE" = "yes" ] || exit 0
. /lib/lsb/init-functions
do_start () {
- log_action_msg "Wait
e
all slave blades"
- $SCRIPT -t $TIMEOUT -w -c 'test -e /home/trc6500 && echo ok'
+ log_action_msg "Wait all slave blades"
+ $SCRIPT -t $TIMEOUT -
x -
w -c 'test -e /home/trc6500 && echo ok'
}
case "$1" in
}
case "$1" in