diff options
author | root <root@rshg054.dnsready.net> | 2013-04-30 00:36:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-30 00:36:52 -0700 |
commit | 08483ba66f8da1bbec05f93e5e3493d3794c02bb (patch) | |
tree | 5cb63763dcb39b1b59aa5388f1bbe10ccc50f3a2 /pcr/mosquitto/mosquitto.service | |
parent | bab69e0f720c6f189c4486b7b945079be23f0a4b (diff) |
Tue Apr 30 00:36:52 PDT 2013
Diffstat (limited to 'pcr/mosquitto/mosquitto.service')
-rw-r--r-- | pcr/mosquitto/mosquitto.service | 22 |
1 files changed, 22 insertions, 0 deletions
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 + |