79baa4968d
Updated the unit file examples to add a dependency on the network-online.target systemd target to prevent mosquitto from starting without network connectivity. Added a documentation line to the unit files pointing to mosquitto manpages. Signed-off-by: Rich Mattes <richmattes@gmail.com>
15 lines
323 B
Plaintext
15 lines
323 B
Plaintext
[Unit]
|
|
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
|
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=main
|
|
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|