From: Holger Levsen Date: Thu, 8 Nov 2012 19:53:43 +0000 (+0100) Subject: improve output X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=aadb11148adc6976efcda5d690a407cc743b6b3f;p=profitbricks%2Fjenkins-build-scripts.git improve output --- diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index 0b3e0c6..ef19b04 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -74,11 +74,13 @@ fi echo "Pinging $TESTSERVER..." for i in $(seq 1 60) ; do sleep 10 - echo "." + echo -n "$(date +%H:%M:%S): " if $(ping -c 1 $TESTSERVER >/dev/null) ; then - echo "$TESTSERVER pings again, so we assume it's booting now." + echo + echo "$(date +%H:%M:%S): ICMP echo reply from $TESTSERVER, so let's assume it's booting now." break fi + echo "no ICMP echo reply received." done if ! $(ping -c 1 $TESTSERVER >/dev/null) ; then figlet "Failure:" @@ -96,10 +98,10 @@ for i in $(seq 1 90) ; do echo -n "ping $TESTSERVER ok..." # check ssh FIXME if $(nc -z $TESTSERVER 22 ) ; then - echo "ok, sshd is running." + echo "ok, sshd is running at $(date +%H:%M:%S)" break else - echo "but sshd is not running." + echo "but sshd is not running at date $(+%H:%M:%S)" fi fi done