Merge "[471053] Add systemd support and services." into develop
commit
6fe5de46b4
@ -0,0 +1,8 @@
|
||||
Select appropriate systemd service based on your compile settings. If you
|
||||
enabled WITH_SYSTEMD, use mosquitto.service.notify, otherwise use
|
||||
mosquitto.service.simple. The service must be renamed to mosquitto.service
|
||||
before usage.
|
||||
|
||||
With WITH_SYSTEMD mosquitto will notify a complete startup after
|
||||
initialization. This means that follow-up units can be started after full
|
||||
initialization of mosquitto (i.e. sockets are opened).
|
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=main
|
||||
ExecStart=/usr/sbin/mosquitto
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/mosquitto
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue