[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: maintenance: better presentation of processes about to be killed

Holger Levsen holger at moszumanska.debian.org
Tue Apr 14 07:42:35 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 5c91b2461d5b0d8c54f3cc40b5d1d8b891eca6a4
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Tue Apr 14 01:14:43 2015 +0200

    reproducible: maintenance: better presentation of processes about to be killed
---
 bin/reproducible_maintenance.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 341c93a..70d2c53 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -140,12 +140,16 @@ if [ -s $RESULT ] ; then
 		DIRTY=true
 		echo
 		echo "Warning: processes found which should not be there, killing them now:"
-		cat $TOKILL | xargs echo
+		for PROCESS in $(cat $TOKILL) ; do
+			PSCALL=${PSCALL:+"$PSCALL,"}"$PROCESS"
+		done
+		ps -F -p $PSCALL
 		echo
-		for PROCESS in $(cat $TOKILL | xargs echo) ; do
+		for PROCESS in $(cat $TOKILL) ; do
 			echo sudo kill -9 $PROCESS 2>&1
 			#echo "'kill -9 $PROCESS' done."  # FIXME re-enable once we're sure this new code is fine
 		done
+		echo "Please kill processes manually for now."
 		echo
 	fi
 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