blob: 25f68fae056934e4243ce6ccd8d70a5d046e6fe0 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001[Unit]
2Description=Mosquitto - lightweight server implementation of the MQTT and MQTT-SN protocols
3ConditionPathExists=/etc/mosquitto/mosquitto.conf
4After=network.target
5
6[Service]
7Type=simple
8ExecStartPre=/bin/rm -f /var/run/mosquitto.pid
9ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
10ExecReload=/bin/kill -HUP $MAINPID
11PIDFile=/var/run/mosquitto.pid
12Restart=on-failure
13
14[Install]
15WantedBy=multi-user.target