]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
improve output
authorHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 19:53:43 +0000 (20:53 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 19:53:43 +0000 (20:53 +0100)
liveboot_testdeploy.sh

index 0b3e0c6da8f0515c3bc3021bdc97b311428e521b..ef19b04d29151d0b5f6be3652bfdfc300d4e3744 100755 (executable)
@@ -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