Add default config path to systemd services. (#139)
Config file is installed by default, so I would expect that it will be used by the systemd service. Add argument for the configuration to the services. Signed-off-by: Tomas Novotny <novotny@rehivetech.com>
This commit is contained in:
parent
62402f7b60
commit
fe93138197
@ -1,7 +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.
|
||||
before usage. Don't forget to change default paths in service file if you
|
||||
changed the default build settings.
|
||||
|
||||
With WITH_SYSTEMD mosquitto will notify a complete startup after
|
||||
initialization. This means that follow-up units can be started after full
|
||||
|
@ -4,7 +4,7 @@ Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=main
|
||||
ExecStart=/usr/sbin/mosquitto
|
||||
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
@ -2,7 +2,7 @@
|
||||
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/mosquitto
|
||||
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user