diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service')
-rw-r--r-- | meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service b/meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service new file mode 100644 index 000000000..25f68fae0 --- /dev/null +++ b/meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service | |||
@@ -0,0 +1,15 @@ | |||
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 | ||