diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-03-05 16:47:54 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-05-18 12:30:55 -0700 |
commit | 8203084059d842a5f663c57c795afddd7caacbc1 (patch) | |
tree | f586cf77f0241821faffd1064887e33e6e1c76ff /meta-networking/recipes-connectivity/mosquitto/files/mosquitto.service | |
parent | 0b78e15eb2f47d33e21f4b4e548607c3d57907dd (diff) | |
download | meta-openembedded-contrib-8203084059d842a5f663c57c795afddd7caacbc1.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.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 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 |