summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintainance.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-18 13:45:32 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-18 13:45:32 +0100
commita54d0a035907e9a7175f9a98f0fb2b8fbb145c45 (patch)
treefc67dcf95bdd3085efa79bbb70f21bacd677f5ae /bin/reproducible_maintainance.sh
parent976587ff3f07befc387fdc5eadbb8db534845bb2 (diff)
downloadjenkins.debian.net-a54d0a035907e9a7175f9a98f0fb2b8fbb145c45.tar.xz
reproducible: actually terminate left over processes
Diffstat (limited to 'bin/reproducible_maintainance.sh')
-rwxr-xr-xbin/reproducible_maintainance.sh8
1 files changed, 4 insertions, 4 deletions
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