Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medium: oracle: always executes a forced stop #434

wants to merge 4 commits into
base: master
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

@@ -22,6 +22,7 @@
# Lon Hohberger <lhh at>
# Michael Moon <Michael dot Moon at>
# Ryan McCabe <rmccabe at>
# Roberto Polli <roberto.polli at>
@@ -388,7 +389,9 @@ exit_idle()
declare -i n=0

ocf_log debug "Waiting for Oracle processes for $ORACLE_SID to terminate..."
while ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" | grep -v grep | awk '{print $1}'; do
# awk always return 0 and the following while will cycle even if no processes are hanging around
# You must set the exit status appending END {!$1;} to mimic grep behavior
while ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" | grep -v grep | awk '{print $1} END {exit !$1;}'; do
if [ $n -ge 90 ]; then
ocf_log debug "Timed out while waiting for Oracle processes for $ORACLE_SID to terminate"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.