[Pkg-mpd-maintainers] Bug#769951: Bug#769951: mpd: `update-rc.d mpd disable' is not enough to be able to run mpd as normal user

Clément B. cb+debianbugreport at rthelemy.eu
Wed Dec 3 18:55:08 UTC 2014


> Socket activation is not a workaround for services not able to open
> sockets, it's an additional feature.
> http://0pointer.de/blog/projects/socket-activation.html

Thanks for the link, good read.

You are right, both unit files have to be kept. In that case,
there is an option Also= for the [Install] section of service
unit files that can be used to take care of "Additional units to
install/deinstall" (see systemd.unit manpage).

So let's add

[Install]
...
Also=mpd.socket

to /lib/systemd/system/mpd.service

That would make sure that disabling the service doesn't leave the
socket hanging around.

Now, this is not related to update-rc.d and the original
bug. Should I open a new one?


Clément



More information about the Pkg-mpd-maintainers mailing list