[Piuparts-devel] [Git][debian/piuparts][develop] fixup logic

Holger Levsen gitlab at salsa.debian.org
Wed Feb 6 09:49:54 GMT 2019


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
79ff4fa8 by Holger Levsen at 2019-02-06T09:49:44Z
fixup logic

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- slave-bin/slave_stop.in


Changes:

=====================================
slave-bin/slave_stop.in
=====================================
@@ -45,11 +45,12 @@ while pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' > /dev/n
 	echo -n "$(date -u +%T) - "
 	pgrep --full '/usr/bin/python @sharedir@/piuparts/piuparts-slave' | xargs -r echo -n "slaves running: "
 	SLEEP=$(( $i * $i ))
+	BUSY=$(ps fax | grep -v grep | grep '/usr/bin/python @sbindir@/piuparts' | awk '{print $NF}')
 	if [ -n "$BUSY" ] ; then
 		# really/meaningful busy
 		echo
 		echo "slaves are busy with:"
-		BUSY=$(ps fax | grep -v grep | grep '/usr/bin/python @sbindir@/piuparts' | awk '{print $NF}')
+		echo -e "$BUSY"
 	fi
 	echo -n " sleeping ${SLEEP}sec now..."
 	for j in $(seq 1 $SLEEP) ; do



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/79ff4fa811593a53ebcb43aa66982b22de467b50

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/79ff4fa811593a53ebcb43aa66982b22de467b50
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190206/7d707545/attachment-0001.html>


More information about the Piuparts-devel mailing list