Looking for an executable names .../svscan is fragile: on Linux, if the executable has been replaced (say, by an upgrade or by prelink), the exe entry will be suffixed with " (deleted)". It may also erroneously match on some other executable that just happens to be named svscan. Instead, simply assume services are configured in /etc/service/. This can be overridden with the ALLAH_SERVICE_DIR environment variable.
Since a stop action must wait until "failed" has turned into "down". God mode essentially uses RC_OK and RC_ERR exclusively (except for the "count of unmonitored tasks in group" bit when checking the status of a group). Allah mode uses: - RC_UP (== RC_OK) to indicate that *all* selected tasks are up - RC_DOWN (== RC_ERR) to indicate that *all* selected tasks are down - RC_OTHER, to indicate any other set of statuses That way the RA's start action can wait for RC_UP, the RA's stop action can wait for RC_DOWN, and both actions will do the right thing should a task be marked as failed.