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