Re: is it OK for invoke-rc.d stop not to stop?
On 20-Apr-04, 09:34 (CDT), Henrique de Moraes Holschuh <firstname.lastname@example.org> wrote:
> BTW, anyone using start-stop-daemon -exec for *stop* fix your scripts
> immediately. NEVER USE -exec FOR STOP. If the binary was prelinked, or
> upgraded, or changed in any way since it was started, -exec will cause it
> not to be stopped.
But the point of accepting -exec for stop is that it prevents killing
of a random process that happens to have the same PID as a daemon that
crashed or otherwise didn't clean up its PID file. It also allows you to
kill a daemon that doesn't have a PID file.
I agree that it has the problems you state, but I'm not convinced you're
correct that it's an error.
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the
world. -- seen on the net