mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-05 10:40:05 +08:00
Fix pid paths in systemd unit.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
check process mosquitto with pidfile /var/run/mosquitto.pid
|
||||
check process mosquitto with pidfile /run/mosquitto.pid
|
||||
start = "/etc/init.d/mosquitto start"
|
||||
stop = "/etc/init.d/mosquitto stop"
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ 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
|
||||
ExecStartPre=/bin/mkdir -m 740 -p /var/run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto: /var/run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto /var/log/mosquitto
|
||||
ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto /run/mosquitto
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -9,9 +9,9 @@ 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
|
||||
ExecStartPre=/bin/mkdir -m 740 -p /var/run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto: /var/run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto /var/log/mosquitto
|
||||
ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto
|
||||
ExecStartPre=/bin/chown mosquitto /run/mosquitto
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user