From 6dcdc01be909f37d9b0a80fda2ced49f5567feb9 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Mon, 28 Jul 2014 19:30:51 -0300 Subject: mosquitto --- pcr/mosquitto/mosquitto.service | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'pcr/mosquitto/mosquitto.service') diff --git a/pcr/mosquitto/mosquitto.service b/pcr/mosquitto/mosquitto.service index 9626cbc45..388bcf7a9 100644 --- a/pcr/mosquitto/mosquitto.service +++ b/pcr/mosquitto/mosquitto.service @@ -1,10 +1,3 @@ -# 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 @@ -12,11 +5,11 @@ Requires=network.target [Service] Type=forking -ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf -d ExecStartPre=/usr/bin/rm -f /run/mosquitto.pid +ExecStart=/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf -d +ExecReload=/bin/kill -HUP $MAINPID PIDFile=/run/mosquitto.pid -Restart=on-abort +Restart=on-failure [Install] WantedBy=multi-user.target - -- cgit v1.2.3