[Piuparts-commits] [piuparts] 01/01: slave_stop: show activity during sleep

Holger Levsen holger at layer-acht.org
Tue Mar 7 11:15:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 89275a2357a9d85318c1a63fb46381fc74f05f60
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Mar 7 12:15:03 2017 +0100

    slave_stop: show activity during sleep
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 slave-bin/slave_stop.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/slave-bin/slave_stop.in b/slave-bin/slave_stop.in
index 4c9f891..06895fd 100755
--- a/slave-bin/slave_stop.in
+++ b/slave-bin/slave_stop.in
@@ -44,8 +44,12 @@ while pgrep --full '/usr/bin/python /srv/piuparts.debian.org/share/piuparts/piup
 	echo -n "$(date -u +%T) - "
 	pgrep --full '/usr/bin/python /srv/piuparts.debian.org/share/piuparts/piuparts-slave' | xargs -r echo -n "slaves running: "
         SLEEP=$(( $i * $i ))
-	echo " sleeping ${SLEEP}sec now..."
-	sleep $SLEEP
+	echo -n " sleeping ${SLEEP}sec now..."
+	for j in $(seq 1 $SLEEP) ; do
+		sleep 1
+		echo -n "."
+	done
+	echo
 	i=$(( $i + 1 ))
 done
 echo -n "$(date -u +%T) - "

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list