summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-19 10:59:59 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-19 10:59:59 +0200
commit273c03b6663bae91ee9088cf12745660e3785c2b (patch)
treef4c388b26779dbed52811b3346dec892ac1cb18e
parent4b9ca5a62ef1e5ecc7d0cd74ac56311ec73a0f5c (diff)
downloadjenkins.debian.net-273c03b6663bae91ee9088cf12745660e3785c2b.tar.xz
reproducible: notify about leftover processes
-rwxr-xr-xbin/reproducible_housekeeping.sh18
-rw-r--r--logparse/reproducible.rules2
2 files changed, 19 insertions, 1 deletions
diff --git a/bin/reproducible_housekeeping.sh b/bin/reproducible_housekeeping.sh
index 717e0a23..18007dcb 100755
--- a/bin/reproducible_housekeeping.sh
+++ b/bin/reproducible_housekeeping.sh
@@ -53,3 +53,21 @@ if [ ! -z "$OLDSTUFF" ] ; then
echo
fi
+# find processes which should not be there
+HAYSTACK=$(mktemp)
+RESULT=$(mktemp)
+ps axo pid,user,size,pcpu,cmd > $HAYSTACK
+for ZOMBIE in $(pgrep -u 1234 -P 1) ; do
+ # faked-sysv comes and goes...
+ grep ^$ZOMBIE $HAYSTACK | grep -v faked-sysv >> $RESULT 2> /dev/null
+done
+if [ -s $RESULT ] ; then
+ echo
+ echo "Warnung: processes found which should not be there:"
+ cat $RESULT
+ echo
+ echo "Please cleanup manually."
+ echo
+fi
+rm $HAYSTACK $RESULT
+
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index 03628085..16e5ef5f 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -6,4 +6,4 @@ warning /Warning: Download of .+ sources failed./
warning /Warning: .+ contains invalid yaml, please fix./
warning /Warnung: old temp directories found in .+/
warning /Warnung: lock .+ still exists, exiting./
-
+warning /Warnung: processes found which should not be there/