summaryrefslogtreecommitdiff
path: root/pcr/mosquitto/mosquitto.service
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-28 19:30:51 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-28 19:30:51 -0300
commit6dcdc01be909f37d9b0a80fda2ced49f5567feb9 (patch)
tree7b8d7a5c6ca2b494af3a743c34f6fe00878627ae /pcr/mosquitto/mosquitto.service
parent749931b987f1e81d31c14e18c43081f44b5a2bca (diff)
downloadabslibre-6dcdc01be909f37d9b0a80fda2ced49f5567feb9.tar.gz
abslibre-6dcdc01be909f37d9b0a80fda2ced49f5567feb9.tar.bz2
abslibre-6dcdc01be909f37d9b0a80fda2ced49f5567feb9.zip
mosquitto
Diffstat (limited to 'pcr/mosquitto/mosquitto.service')
-rw-r--r--pcr/mosquitto/mosquitto.service13
1 files changed, 3 insertions, 10 deletions
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
-