git://git.onelab.eu
/
mom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84d0101
)
look for rpm instead of yum
author
Scott Baker
<bakers@cs.arizona.edu>
Wed, 20 Apr 2011 16:26:27 +0000
(16:26 +0000)
committer
Scott Baker
<bakers@cs.arizona.edu>
Wed, 20 Apr 2011 16:26:27 +0000
(16:26 +0000)
pl_mop.sh
patch
|
blob
|
history
diff --git
a/pl_mop.sh
b/pl_mop.sh
index
454982e
..
24346e1
100755
(executable)
--- a/
pl_mop.sh
+++ b/
pl_mop.sh
@@
-191,10
+191,10
@@
kill_multi_nm(){
fix_rpm() {
echo "* Checking for stuck rpm processes"
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 yu
m processes found"
+ if [[ $
rpm_count -ge 6
]]; then
+ echo "* $
rpm_count rp
m processes found"
# kill rpm processes, attempt up to 10 times and then give up
try_count=0
# kill rpm processes, attempt up to 10 times and then give up
try_count=0