[OCF] ocf-shellfuncs standardization - Comments? Objections?

Ragnar Kjørstad linux-ha at ragnark.vestdata.no
Mon Jul 4 02:52:34 MDT 2005


On Sun, Jul 03, 2005 at 04:32:36PM -0600, Alan Robertson wrote:
> >http://refspecs.freestandards.org/LSB_2.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html
> >
> >log_success_msg, log_failure_msg and log_warning_msg.
> 
> OK.
> 
> Those don't serve the same purpose as we're trying to do.
> 
> These are only for the final "I'm done and everything is success or 
> failure or warning" - and they only go to the pre-boot console (in 
> practice).

I can't find anything in the documentation that indicates that they are
only for the final message. 

> We need things which also allow informative messages, debug messages, 
> and which don't (in practice) print funny reverse video thing, and which 
> don't go to the pre-boot console.

The LSB only defines what the functions are, not what they should do.

If a script is executed as a regular init script, the scripts should
probably forward the data to the screen, as they do with Red Hat and
SUSE initscripts.

If the script is executed in the OCF environment the same functions
should (IMHO) be defined to send the messages to the Resource Manager,
and then it would be up to the RM to decide what to do with them.

I agree though, that the 3 functions should be complemented by
log_info_msg and log_debug_msg (and possible others), which could be
NOOPs in regular initscripts but still do something in the OCF
environment. (Actually, it would be very useful if one could enable
debugging for regular initscripts as well, e.g. by setting an
environmentvariable LSB_DEBUG)


-- 
Ragnar Kjørstad
Software Engineer
Scali - http://www.scali.com
Scaling the Linux Datacenter


More information about the OCF mailing list