2017-12-16 21:00:52 +00:00
|
|
|
## {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
|
|
Description=Mosquitto MQTT Broker daemon
|
|
|
|
ConditionPathExists=/etc/mosquitto/mosquitto.conf
|
|
|
|
After=network.target
|
|
|
|
Requires=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
RemainAfterExit=no
|
|
|
|
StartLimitInterval=0
|
|
|
|
PIDFile={{ mosquitto_pid_file }}
|
2017-12-16 21:16:35 +00:00
|
|
|
ExecStart=/bin/sh -c "/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -d"
|
2017-12-16 21:00:52 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|