# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id$
-#
PATH=/sbin:/usr/sbin:$PATH
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