On Friday 17 August 2007 1:17 pm, James Oakley wrote:
> On Friday 17 August 2007 4:55 am, Andrew Beekhof wrote:
> > > That message is from SUSE's startproc command. It was cupsd that exited
> > > with a status of 1. startproc pointed this out, since it checks for
> > > start failures and correctly returned 7.
> >
> > i dont believe that in this particular case 7 is correct.
> > at least its not what you want the node to be fenced as a result.
> >
> > 7 means "the resource is safely stopped"
> > use one of:
> >  *  EXECRA_UNKNOWN_ERROR = 1,
> >  *  EXECRA_INVALID_PARAM = 2,
> >  *  EXECRA_UNIMPLEMENT_FEATURE = 3,
> >  *  EXECRA_INSUFFICIENT_PRIV = 4,
> > if you want the node shot.

I just checked LSB 3.1 and it appears to define 7 as an error. From 
http://refspecs.linux-foundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html:

  In case of an error while processing any init-script action except for
  status, the init script shall print an error message and exit with a
  non-zero status code:

    1  generic or unspecified error (current practice)
    2  invalid or excess argument(s)
    3  unimplemented feature (for example, "reload")
    4  user had insufficient privilege
    5  program is not installed
    6  program is not configured
    7  program is not running
    8-99  reserved for future LSB use
    100-149  reserved for distribution use
    150-199  reserved for application use
    200-254  reserved

-- 
James Oakley
[EMAIL PROTECTED]
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to