Hi all, here some questions regarding programming ocf-ra:
a) Am I right that programming a RA as portable shell script (no bashisms) is preferred? Or are other (scripting) languages also welcome? b) I found RA scripts for daemons where the 'status' call checks for the existence of the daemon pid file and if that file is not there $OCF_NOT_RUNNING is returned. As all the cluster guys out there should be very pessimistic by default, I'm asking myself if this kind of check is really enough. On the one hand side much efford is taken to be REALLY sure that a ressource isn't alive anymore (fencing, STONITH) and on the other side the simple nonexistence of a file seems to be enough to assume (!) the relevant process isn't alive anymore. What are you thinking about that? c) If you agree with me, that a explicit check for a running process would be more reliable, my next question is: Does anyone know how this can be done in a shell script in a portable and reliable manner? (e.g. ps ax with grep) I found that 'ocf_pidfile_status' in .ocf-shellfuncs encapsulates a part of the required tests. Awaiting your comments and suggestions? Best regards Andreas Mock _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
