Hello - Attached is a patch for ocf_run function in .ocf_shellfunc. The patch make ocf_run to return an actual exit code from the command it ran. That allows RAs to implement a better logic for handling error situations. Following RAs use ocf_run function:
apache exportfs ICP iSCSILogicalUnit iSCSITarget LVM mysql ServerRAID Squid syslog-ng Most of them do not check error code from ocf_run or check that is zero/non zero. pgsql has some extended logic to provide additional information to the client based on that error code. So the patch will benefit pgsql and won't hurt other RAs. Thanks. -- Serge Dubrouski.
ocf_run_patch1
Description: Binary data
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/