Bugzilla – Bug 15744
Debian install/init.d script can't stop server
Last modified: 2010-02-20 12:17:49 UTC
I suspect change 30202 which looks wrong to me. In any case, after installing 30216 on debian, I found two copies of the server running. /etc/init.d/squeezeboxserver stop fails to find any processes to stop even though the server is running. On my debian etch system, squeezeboxserver_safe still shows up as: 17150 (squeezeboxserve) S 1 17149 17149 0 -1 256 539 572 0 0 0 0 0 0 20 0 1 0 61890086 3158016 345 4294967295 134512640 135191968 3221217600 3221214376 3086173220 0 65536 4 81923 0 0 0 17 0 0 0 0 0 0 in /proc/pid/stat, which is what start-stop-daemon looks at. So changing the --name to squeezeboxerver_s breaks the script. Some ideas. First - do you really need --name at all - given pidfile. Removing it works in the normal case by my testing. Second - if you want to use --name, change the name of the startup stript so it isn't truncated in /proc/pid/stat and so avoid this issue.
*** This bug has been marked as a duplicate of bug 15391 ***