X-Git-Url: http://git.onelab.eu/?p=mom.git;a=blobdiff_plain;f=pl_mop.sh;h=49222770d418f13607c09126939cd276521c18cc;hp=454982e9553b5ec8892945d36724ebabc7ca23ec;hb=a7ab53cbaf3037b67fbda98fed3887c905d93e96;hpb=76d55c06310c3ff54b36a6f9e075499b2d8091a6 diff --git a/pl_mop.sh b/pl_mop.sh index 454982e..4922277 100755 --- a/pl_mop.sh +++ b/pl_mop.sh @@ -5,8 +5,6 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id$ -# PATH=/sbin:/usr/sbin:$PATH @@ -191,10 +189,10 @@ kill_multi_nm(){ fix_rpm() { echo "* Checking for stuck rpm processes" - yum_count=`pgrep -f "yum clean all" | wc -l` + rpm_count=`pgrep -f "rpm" | wc -l` - if [[ $yum_count -ge 2 ]]; then - echo "* $yum_count yum processes found" + if [[ $rpm_count -ge 6 ]]; then + echo "* $rpm_count rpm processes found" # kill rpm processes, attempt up to 10 times and then give up try_count=0