[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: actually terminate left over processes

Holger Levsen holger at moszumanska.debian.org
Wed Mar 18 12:47:42 UTC 2015


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

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit a54d0a035907e9a7175f9a98f0fb2b8fbb145c45
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Mar 18 13:45:32 2015 +0100

    reproducible: actually terminate left over processes
---
 bin/reproducible_maintainance.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 3552565..aaad5e6 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -106,7 +106,7 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
 	DIRTY=true
 fi
 
-# find processes which should not be there
+# find+terminate processes which should not be there
 HAYSTACK=$(mktemp)
 RESULT=$(mktemp)
 PBUIDS="1234 1111 2222"
@@ -119,12 +119,12 @@ for i in $PBUIDS ; do
 done
 if [ -s $RESULT ] ; then
 	echo
-	echo "Warning: processes found which should not be there:"
+	echo "Warning: processes found which should not be there, killing them now:"
 	cat $RESULT
 	echo
 	ZOMBIES=$(cat $RESULT | cut -d " " -f1 | xargs echo)
-	echo "kill -9 $(echo $ZOMBIES)"
-	echo "Please cleanup manually."
+	kill -9 $(echo $ZOMBIES)
+	echo "'kill -9 $(echo $ZOMBIES)' done."
 	echo
 	DIRTY=true
 fi

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



More information about the Qa-jenkins-scm mailing list