Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 81938

Summary: Kill using hangup for proper state saving
Product: Gentoo Linux Reporter: Avuton Olrich <avuton>
Component: New packagesAssignee: Brian Harring (RETIRED) <ferringb>
Status: RESOLVED INVALID    
Severity: enhancement CC: ticho
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://musicpd.org
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to /etc/init.d/mpd

Description Avuton Olrich 2005-02-13 18:08:22 UTC
MPD should be killed using hangup (HUP) in the start-stop-daemon so the state_file if not killed with HUP it is sometimes unreliable what state it will save. Easy way to do this is just to simply add '--signal 1' to the init file in the stop function.
Comment 1 Avuton Olrich 2005-02-13 18:09:32 UTC
Created attachment 51173 [details, diff]
Patch to /etc/init.d/mpd
Comment 2 Avuton Olrich 2005-02-13 18:20:08 UTC
mpd author telling me I'm wrong, will refile if I'm right