ClusterLabs/resource-agents — pull request #434 by ioggstream (2014-05-26 16:21:51+00:00)
Title: script doesn't recognize when oracle processes are correctly stopped: stop always lasts more than 90 seconds

exit_idle() ps |grep if all oracle processes are correctly stopped.

expected behavior:
- ps | grep should return 0 if oracle is not stopped, 1 if stopped

actual behavior:
- ps | grep always return 0, even if no oracle processes linger around. So stopping an oracle instance always takes at least 90 seconds

This is because there's an ps | grep | awk; but awk always return 0 even if it prints no output.

A simpler (but logically different) solution could be to just remove the awk...your choiche!

Peace,
R.