You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If this has reached the retry limit configured then abort
25
+
if [[ ${LOCKCHECKATTEMPT}-eq$((PACKAGEMANAGERLOCKRETRIES +1)) ]];then
26
+
logit "ERROR: Final attempt to wait for yum to release lock file failed. Aborting auter run"
27
+
quit 3
28
+
fi
28
29
29
-
logit "INFO: /var/run/yum.pid exists. Waiting ${PACKAGEMANAGERLOCKWAITTIME} seconds for yum lock to be released: Attempt ${LOCKCHECKATTEMPT} of ${PACKAGEMANAGERLOCKRETRIES}"
30
-
sleep ${PACKAGEMANAGERLOCKWAITTIME}
31
-
[[ !-f /var/run/yum.pid ]] && logit "INFO: yum lock has been released"&&break
32
-
done
30
+
logit "INFO: /var/run/yum.pid exists and process runnning. Waiting ${PACKAGEMANAGERLOCKWAITTIME} seconds for yum lock to be released: Attempt ${LOCKCHECKATTEMPT} of ${PACKAGEMANAGERLOCKRETRIES}"
31
+
sleep ${PACKAGEMANAGERLOCKWAITTIME}
32
+
{ pgrep --pidfile /var/run/yum.pid &>/dev/null ; } || { logit "INFO: yum lock has been released"&&break; }
0 commit comments