[Pkg-mpd-maintainers] Bug#959380: mpd: Can't disable mpd easily

kaliko kaliko at azylum.org
Fri May 1 18:41:54 BST 2020


Hi,

Le 01/05/2020 à 18:48, eingousef a écrit :
> I'd like to disable mpd at startup to only enable it when I need
> it. (e.g., in a user console : mpd ; ncmpc ; mpd --kill;)

With the current setup and using systemd you can disable mpd.service and keep mpd.socket
enabled :

    systemctl disable mpd.service
    systemctl enable mpd.socket

Then mpd is disable at startup but mpd.socket will launched it as soon as a client open
[::]:6600 over the network or locally /run/mpd/socket.


> The only way I've found to disable the service permanently is to
> comment the line […]

What's wrong with systemd commands:

    systemctl stop mpd
    systemctl disable mpd

That will prevent mpd from starting at boot (both service and socket) but allow you to
run it when you want with "systemctl start mpd".

Is this a better solution for your use case?
Cheers
k

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-mpd-maintainers/attachments/20200501/0fbd400a/attachment.sig>


More information about the Pkg-mpd-maintainers mailing list