Skip to content

Commit

Permalink
Mosquitto now waits for network-online when starting (Closes: #1036450)
Browse files Browse the repository at this point in the history
See: #2878
  • Loading branch information
narc-Ontakac2 authored and LocutusOfBorg committed Sep 29, 2023
1 parent b9a842a commit 1094843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions service/systemd/mosquitto.service.notify
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=Mosquitto MQTT Broker
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
After=network.target
Wants=network.target
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
Expand Down
4 changes: 2 additions & 2 deletions service/systemd/mosquitto.service.simple
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=Mosquitto MQTT Broker
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
After=network.target
Wants=network.target
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Expand Down

0 comments on commit 1094843

Please sign in to comment.