git://git.onelab.eu
/
bootcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed the logic for the timeout (break instead of continue..)
[bootcd.git]
/
initscripts
/
pl_boot
diff --git
a/initscripts/pl_boot
b/initscripts/pl_boot
index
ce685c9
..
417a183
100755
(executable)
--- a/
initscripts/pl_boot
+++ b/
initscripts/pl_boot
@@
-1,5
+1,14
@@
#!/bin/bash
#!/bin/bash
+### xxx tmp debug
+
+set -x
+echo pl_boot on console > /dev/console
+exec 2>&1
+exec > /dev/console
+echo pl_boot plain
+
+###
. /etc/init.d/pl_functions
. /tmp/planet.cnf
. /etc/init.d/pl_functions
. /tmp/planet.cnf
@@
-107,11
+116,7
@@
while : ; do
if [[ $contact_count != 0 ]]; then
if [[ $contact_count != 0 ]]; then
- if [[ $on_backup_server == 1 ]]; then
- echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from backup server in 30s"
- else
- echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from primary server in 30s"
- fi
+ echo $(date "+%H:%M:%S") " pl_boot: next attempt in 30s, to fetch script from server at $CONNECT_BOOT_SERVER"
/bin/sleep 30
fi
/bin/sleep 30
fi