[Pacemaker] Stateful RA

Vadym Chepkov vchepkov at gmail.com
Wed Jun 2 06:55:23 UTC 2010


Hi,

I was looking into Stateful resource agent  (branch:      stable-1.0)

stateful_start() {
    stateful_check_state master
    if [ $? = 0 ]; then
        # CRM Error - Should never happen
        return $OCF_RUNNING_MASTER
    fi
...

Why does it return $OCF_RUNNING_MASTER when master is not running? I am confused.

Thanks,
Vadym





More information about the Pacemaker mailing list