aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2018-03-05 16:47:54 -0800
committerArmin Kuster <akuster808@gmail.com>2018-05-17 08:32:26 -0700
commit51411b3c7af5df603d341f0cd2641cf55847f564 (patch)
treef586cf77f0241821faffd1064887e33e6e1c76ff /meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service
parent251878e8b6b993b159c949f7e4860faf085e17f5 (diff)
downloadmeta-openembedded-contrib-51411b3c7af5df603d341f0cd2641cf55847f564.tar.gz
mosquito: move from oe to networking layer
mosquito has dependancy on meta-netowrking packages Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service')
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service15
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 0000000000..25f68fae05
--- /dev/null
+++ b/meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Mosquitto - lightweight server implementation of the MQTT and MQTT-SN protocols
+ConditionPathExists=/etc/mosquitto/mosquitto.conf
+After=network.target
+
+[Service]
+Type=simple
+ExecStartPre=/bin/rm -f /var/run/mosquitto.pid
+ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
+ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/var/run/mosquitto.pid
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target