From ea3df4e2c6f66cee01a0987fbcc77410c8e50790 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Tue, 14 Apr 2026 22:53:38 -0300 Subject: [PATCH] mosquitto: install default mosquitto.conf for systemd compatibility The upgrade to mosquitto 2.1.2 follows an upstream change where the default configuration file is only installed as ${sysconfdir}/mosquitto/mosquitto.conf.example. However, the shipped systemd service explicitly starts mosquitto using ${sysconfdir}/mosquitto/mosquitto.conf. If this file is not present, the daemon exits immediately and the service fails to start. Install the default mosquitto.conf alongside the example file, using the upstream-provided configuration, to match the expectations of the service unit and ensure the service starts correctly by default, as done with the 2.0.22 version. Signed-off-by: Ricardo Salveti Signed-off-by: Khem Raj --- .../recipes-connectivity/mosquitto/mosquitto_2.1.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb index 6a6e554453..8bb6c9009d 100644 --- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb +++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb @@ -57,6 +57,8 @@ do_install:append() { -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ -e 's,@SYSCONFDIR@,${sysconfdir},g' \ ${D}${sysconfdir}/init.d/mosquitto + + install -m 0644 ${S}/mosquitto.conf ${D}${sysconfdir}/mosquitto/mosquitto.conf } PACKAGE_BEFORE_PN = "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-examples"