diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 19:30:51 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 19:30:51 -0300 |
commit | 6dcdc01be909f37d9b0a80fda2ced49f5567feb9 (patch) | |
tree | 7b8d7a5c6ca2b494af3a743c34f6fe00878627ae /pcr/mosquitto/mosquitto.service | |
parent | 749931b987f1e81d31c14e18c43081f44b5a2bca (diff) |
mosquitto
Diffstat (limited to 'pcr/mosquitto/mosquitto.service')
-rw-r--r-- | pcr/mosquitto/mosquitto.service | 13 |
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 - |