From 9000b22a1aec1b5bde1777d31bd4234f86100343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 29 Apr 2013 16:39:28 -0300 Subject: Upgraded and added .service --- pcr/mosquitto/mosquitto.service | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pcr/mosquitto/mosquitto.service (limited to 'pcr/mosquitto/mosquitto.service') diff --git a/pcr/mosquitto/mosquitto.service b/pcr/mosquitto/mosquitto.service new file mode 100644 index 000000000..7e9ef7cc8 --- /dev/null +++ b/pcr/mosquitto/mosquitto.service @@ -0,0 +1,22 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Mosquitto MQTT Broker daemon +ConditionPathExists=/etc/mosquitto/mosquitto.conf +Requires=network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -d +ExecStartPre=/bin/rm -f /var/run/mosquitto.pid +PIDFile=/var/run/mosquitto.pid +Restart=on-abort + +[Install] +WantedBy=multi-user.target + -- cgit v1.2.3-2-g168b