diff options
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 - |