From 2f08165628cd5688808ca6e07fe39027a41de036 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 20 Mar 2015 13:21:22 +0100 Subject: reproducible: actually kill parentless processes older than 12h because thats how long a single build may take --- bin/reproducible_maintainance.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_maintainance.sh') diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index d0026e40..84624bb6 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -125,7 +125,8 @@ if [ -s $RESULT ] ; then echo for PROCESS in $(cat $RESULT | cut -d " " -f1 | xargs echo) ; do AGE=$(ps -p $PROCESS -o etimes= || echo 0) - if [ $AGE -gt 86400 ] ; then + # a single build may only take half a day, so... + if [ $AGE -gt 43200 ] ; then sudo kill -9 $PROCESS 2>&1 echo "'kill -9 $PROCESS' done." else -- cgit v1.2.3-54-g00ecf