From 7431f6df25f64c83d97607edc9b6872b3a6ff4de Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 18 Jan 2015 13:17:37 +0100 Subject: reproducible: also check for new uids used by pbuilder --- bin/reproducible_maintainance.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 8c43265f..b7d28997 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -61,10 +61,13 @@ fi # find processes which should not be there HAYSTACK=$(mktemp) RESULT=$(mktemp) +PBUIDS="1234 1111 2222" ps axo pid,user,size,pcpu,cmd > $HAYSTACK -for ZOMBIE in $(pgrep -u 1234 -P 1 || true) ; do - # faked-sysv comes and goes... - grep ^$ZOMBIE $HAYSTACK | grep -v faked-sysv >> $RESULT 2> /dev/null || true +for i in $PBUIDS ; do + for ZOMBIE in $(pgrep -u $i -P 1 || true) ; do + # faked-sysv comes and goes... + grep ^$ZOMBIE $HAYSTACK | grep -v faked-sysv >> $RESULT 2> /dev/null || true + done done if [ -s $RESULT ] ; then echo -- cgit v1.2.3-54-g00ecf