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. 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: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/