diff options
| author | Ricardo Salveti <ricardo.salveti@oss.qualcomm.com> | 2026-04-14 22:53:38 -0300 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-14 23:46:26 -0700 |
| commit | ea3df4e2c6f66cee01a0987fbcc77410c8e50790 (patch) | |
| tree | 01f3ced6a4b7e7cd2f108b0fcedece57b7a214f5 /meta-networking | |
| parent | 6b2935188539f157a7bbf209f17e1aab56dfeef9 (diff) | |
| download | meta-openembedded-ea3df4e2c6f66cee01a0987fbcc77410c8e50790.tar.gz | |
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 <ricardo.salveti@oss.qualcomm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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() { | |||
| 57 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ | 57 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ |
| 58 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | 58 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
| 59 | ${D}${sysconfdir}/init.d/mosquitto | 59 | ${D}${sysconfdir}/init.d/mosquitto |
| 60 | |||
| 61 | install -m 0644 ${S}/mosquitto.conf ${D}${sysconfdir}/mosquitto/mosquitto.conf | ||
| 60 | } | 62 | } |
| 61 | 63 | ||
| 62 | PACKAGE_BEFORE_PN = "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-examples" | 64 | PACKAGE_BEFORE_PN = "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-examples" |
