summaryrefslogtreecommitdiff
path: root/pcr/mosquitto/mosquitto.service
blob: 9a0a7eca883233e77cb5f5a2b6a2203b42428c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Mosquitto MQTT Broker daemon
ConditionPathExists=/etc/mosquitto/mosquitto.conf
Requires=network.target

[Service]
Type=forking
ExecStartPre=/usr/bin/rm -f /run/mosquitto.pid
ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf -d
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/mosquitto.pid
Restart=on-failure

[Install]
WantedBy=multi-user.target