mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00

This patch changes the behavior of how mosquitto is starting using systemd. Currently it is starting only when the network is online, meaning that the network is configured to a routable IP address. With this patch, mosquitto is starting when the network is offline, does not need to be configured. This is needed because the MQTT broker might be used as an internal message bus which does not need the network to be online. Signed-off-by: Stavros Vagionitis <stavros.vagionitis@jci.com>
16 lines
344 B
Plaintext
16 lines
344 B
Plaintext
[Unit]
|
|
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
|
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=main
|
|
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|