[Piuparts-commits] [piuparts] 02/02: slave_stop: improve output
Holger Levsen
holger at layer-acht.org
Mon Mar 6 00:49:47 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 d71a9ead3b96c8738b711b9098439cfd9ab4a121
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Mar 6 01:49:40 2017 +0100
slave_stop: improve output
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
slave-bin/slave_stop.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/slave-bin/slave_stop.in b/slave-bin/slave_stop.in
index 76ad33d..91a6f60 100755
--- a/slave-bin/slave_stop.in
+++ b/slave-bin/slave_stop.in
@@ -32,10 +32,15 @@ for i in $(seq 1 $SLAVECOUNT) ; do
tail -f screenlog.$i &
done
+i=1
while pgrep --full '/usr/bin/python /srv/piuparts.debian.org/share/piuparts/piuparts-slave' > /dev/null ; do
+ echo -n "$(date -u +%T) - "
pgrep --full '/usr/bin/python /srv/piuparts.debian.org/share/piuparts/piuparts-slave' | xargs -r echo "slaves running: "
- sleep 1
+ sleep $(( $i * $i ))
+ let i+=1
done
+echo -n "$(date -u +%T) - "
+pgrep --full '/usr/bin/python /srv/piuparts.debian.org/share/piuparts/piuparts-slave' | xargs echo "slaves running: "
pkill --full 'tail -f screenlog.'
pkill --full 'SCREEN -S piuparts_slave_screen -d -m'
--
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