xoxys.mosquitto/templates/etc/systemd/system/mosquitto.service.j2

20 lines
445 B
Plaintext
Raw Normal View History

## {{ 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"
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target