From a54d0a035907e9a7175f9a98f0fb2b8fbb145c45 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 18 Mar 2015 13:45:32 +0100 Subject: reproducible: actually terminate left over processes --- bin/reproducible_maintainance.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_maintainance.sh') diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 3552565e..aaad5e66 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 -- cgit v1.2.3-70-g09d2