On Tue, Jul 22, 2008 at 11:37, Nick <[EMAIL PROTECTED]> wrote: > On the Linux-ha site, it states that a proper LSB script should support > three operations, start stop and status. > > I've done all the tests of the LSB script (as far as I can tell it complies) > that I will be using to start a fairly unimportant resource, and in the cib, > I configured three operations for the the vsftpd service > > start > stop > status > > the documentation supports this way to do so: > > Operations which Heartbeat can perform on a ResourceInstance include: > > * start - enable or start the given resource > * stop - disable or stop the given resource > * status - return the status of the given resource > > NOTE: In the OCF spec, the status operation has been replaced with monitor. > > But when i run a ptest on the cib I get this error: > > ptest[20037]: 2008/07/22_11:23:42 WARN: text2task: Unsupported action: > status > > If I change it to monitor (which should be OCF only, per the documentation), > the error goes away. > > So, which is the valid choice, what ptest says, or what the website says??
both - always use 'monitor' in the configuration and the lrmd will translate that into a 'status' operation for LSB-based resources > > Nick > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
