Bug 15744 - Debian install/init.d script can't stop server
: Debian install/init.d script can't stop server
Status: RESOLVED DUPLICATE of bug 15391
Product: Logitech Media Server
Classification: Unclassified
Component: Debian
: 7.5.0
: PC Debian Linux
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-20 11:56 UTC by Marc Auslander
Modified: 2010-02-20 12:17 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Auslander 2010-02-20 11:56:58 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.
Comment 1 KDF 2010-02-20 12:17:49 UTC

*** This bug has been marked as a duplicate of bug 15391 ***