mpd: disable systemd mpd.socket to enable zeroconf
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 4 Jan 2023 00:36:16 +0000 (19:36 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
recipes-multimedia/musicpd/mpd_%.bbappend

index 8f86ff0..3bc503c 100644 (file)
@@ -13,4 +13,10 @@ do_install:append() {
     echo "}" >> ${D}/${sysconfdir}/mpd.conf
 
     install -m 644 -o mpd -g audio ${WORKDIR}/radios.m3u ${D}/${localstatedir}/lib/mpd/playlists/
+
+    # Disabling autostart of mpd.socket, in order to enable zeroconf:
+    rm ${D}${systemd_unitdir}/system/mpd.socket
 }
+
+# Disabling autostart of mpd.socket, in order to enable zeroconf:
+SYSTEMD_SERVICE:${PN} = "mpd.service"