From: Scott Baker Date: Wed, 20 Apr 2011 16:26:27 +0000 (+0000) Subject: look for rpm instead of yum X-Git-Tag: Mom-2.3-3~2 X-Git-Url: http://git.onelab.eu/?p=mom.git;a=commitdiff_plain;h=3738ee00db8a2ce5184ea40c9a26d80c8336665f;hp=84d010124e01c6d71f2778daabb3e5adf66437c9 look for rpm instead of yum --- diff --git a/pl_mop.sh b/pl_mop.sh index 454982e..24346e1 100755 --- a/pl_mop.sh +++ b/pl_mop.sh @@ -191,10 +191,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