[Pkg-mpd-maintainers] Bug#760131: Bug#760131: mpd: dpkg doesn't restart MPD after upgrade (service is cut)

Cédric Jeanneret debian-bugs at tengu.ch
Tue Sep 2 04:47:31 UTC 2014


Hello

On 09/01/2014 10:30 PM, Florian Schlichting wrote:
> tags 760131 +moreinfo
> thanks
> 
> Hi,
> 
>> It seems dpkg doesn't restart MPD service after an update: the service
>> get cut, binary get replaced??? but then service isn't started again,
>> leading to the absence of MPD service once the upgrade is finished.
>>
>> Steps:
>> - upgrade mpd
>>
>> Outcome:
>> - no mor MPD service after the upgrade, as it gets stopped and never
>>   restarted
>>
>> Expected outcome:
>> - package post-install script should start mpd
> 
> it does, actually, have a look at the end of
> /var/lib/dpkg/info/mpd.postinst
> 
> I assume you're running mpd as a system service (and not from your user
> session), and your init system is systemd?

yup & yep

> 
> Have you checked mpd is actually configured to start on boot ('systemctl
> status mpd'), are there any errors in the mpd log?

erkkk… wasn't enabled. This should have changed some times ago, I
remember having music at boot time some (weeks|months) ago. After that,
I got a problem with USB sound card, requesting to:
- stop mpd
- unplug usb sound card
- plug it back
- start mpd

Thus I didn't wear the headset at boot time, knowing there were another
bug (unrelated to mpd AFAIK)…

> 
> Did this occur with the upgrade to 0.18.12-1+b1, and which version were
> you upgrading from? 
> 
> mpd transitioned away from the START_MPD setting in /etc/default/mpd a
> few minor releases ago, and in cases where this was not set to true,
> disabled the system service so as to have the same effect for
> system-V-init boots. systemd boots never took that setting into account,
> so if you changed START_MPD to false, then switched to systemd, and then
> enabled mpd.service, you may find mpd.service was disabled...

most probably what happened, though I just don't remember how it went :/.

> 
>> This behavior is also detected on testing and, if I recall correctly, on
>> current stable (though I'm not 100% sure, long time I didn't get stable
>> on my wrk).
> 
> the testing version is identical, but the version in wheezy is 0.16.7-2,
> which is quite old and has a very different postinst - which also
> contains a "(re-)start mpd command"
> 
> Does this also happen when you reinstall mpd (e.g. 'sudo apt-get install
> --reinstall mpd')?

after a sysctl enable mpd, works as expected

> 
> Please try to pin this down a little more, all of it works for me!

Same for me now! Sorry for the noise. And thank you for the fast and
complet answer/support :).

Cheers,

C.

> 
> Florian
> 



More information about the Pkg-mpd-maintainers mailing list