On 9/6/06, Alan Robertson <[EMAIL PROTECTED]> wrote:
Lars Marowsky-Bree wrote:
> Let's continue this here instead of the tutorial ;-)
>
> I apologize for saying that these two exit codes for LSB scripts don't get
> mapped to stopped; the code does do that. I'd argue it's wrong though. Here's
> what the LSB says:
>
>         # 0 - service up and running
>         # 1 - service dead, but /var/run/  pid  file exists
>         # 2 - service dead, but /var/lock/ lock file exists
>         # 3 - service not running (unused)
>         # 4 - service status unknown :-(
>
>
> 1 & 2 thus mean "something left around", which ought to imply we should
> clean it up as failed; clearly, 1 & 2 are not "cleanly stopped".

It is not running -that's clear.   I tend to think that service not
running is the same as dead.

I think there's room for a difference of opinion on this.  My guess is
that the difference is mostly theoretical.

If you kill -9 a service, then you're going to get exit 1 or 2.  I don't
think that warrants failing to start the service - which is what we'd do
if we didn't map it into 7.

7 never results in "dont start this service here again"

If you kill -9 a service then the next monitor should give 1 or 2.
At this point we'll send a stop which is supposed to get the resource
into a sane state (from which a subsequent start should be able to
succeed).

Even if there are no monitors, a stop is not supposed to be returning
1 or 2 because, again, its supposed to leave things in a sane state.
Even then, if it does return 1 or 2, we'll likely shoot the node.  So
its still handled.


You didn't offend me at all.  But, since I did write the exit code
mapping stuff, I was pretty sure about it ;-).


--
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to