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
signature.asc
Description: OpenPGP digital signature