X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=initscripts%2Fpl_boot;h=417a1839a678bb10a137c318024c8e35b4e2defc;hb=0597762b242c534572d27be7b895304923b4cc82;hp=ce685c9a03635a323724c11c54bd37e7f52fac9d;hpb=b5b7d860157f6458aca2d69a30092ecd7fc5a616;p=bootcd.git diff --git a/initscripts/pl_boot b/initscripts/pl_boot index ce685c9..417a183 100755 --- a/initscripts/pl_boot +++ b/initscripts/pl_boot @@ -1,5 +1,14 @@ #!/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 @@ -107,11 +116,7 @@ while : ; do 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