5a56f066a8
This happens before starting the broker. Also don't quit with an error if opening the log file isn't possible. Closes #821.
16 lines
409 B
Plaintext
16 lines
409 B
Plaintext
[Unit]
|
|
Description=Mosquitto MQTT Broker
|
|
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto
|
|
ExecStartPre=/bin/chown mosquitto: /var/log/mosquitto
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|