summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto/files/2895.patch')
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2895.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
new file mode 100644
index 000000000..a9e9c97b8
--- /dev/null
+++ b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
@@ -0,0 +1,25 @@
1From: Joachim Zobel <jz-2017@heute-morgen.de>
2Date: Wed, 13 Sep 2023 10:05:43 +0200
3Subject: [PATCH] Mosquitto now waits for network-online when starting
4 (Closes: #1036450)
5
6See: https://github.com/eclipse/mosquitto/issues/2878
7---
8 service/systemd/mosquitto.service.simple | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/service/systemd/mosquitto.service.simple b/service/systemd/mosquitto.service.simple
12index 15ee0d6..c2a330b 100644
13--- a/service/systemd/mosquitto.service.simple
14+++ b/service/systemd/mosquitto.service.simple
15@@ -1,8 +1,8 @@
16 [Unit]
17 Description=Mosquitto MQTT Broker
18 Documentation=man:mosquitto.conf(5) man:mosquitto(8)
19-After=network.target
20-Wants=network.target
21+After=network-online.target
22+Wants=network-online.target
23
24 [Service]
25 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf