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:
Tomas Novotny 2016-04-19 23:38:44 +02:00 committed by Roger Light
parent 62402f7b60
commit fe93138197
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
Select appropriate systemd service based on your compile settings. If you Select appropriate systemd service based on your compile settings. If you
enabled WITH_SYSTEMD, use mosquitto.service.notify, otherwise use enabled WITH_SYSTEMD, use mosquitto.service.notify, otherwise use
mosquitto.service.simple. The service must be renamed to mosquitto.service 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 With WITH_SYSTEMD mosquitto will notify a complete startup after
initialization. This means that follow-up units can be started after full initialization. This means that follow-up units can be started after full

View File

@ -4,7 +4,7 @@ Description=Mosquitto MQTT v3.1/v3.1.1 Broker
[Service] [Service]
Type=notify Type=notify
NotifyAccess=main NotifyAccess=main
ExecStart=/usr/sbin/mosquitto ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Restart=on-failure Restart=on-failure
[Install] [Install]

View File

@ -2,7 +2,7 @@
Description=Mosquitto MQTT v3.1/v3.1.1 Broker Description=Mosquitto MQTT v3.1/v3.1.1 Broker
[Service] [Service]
ExecStart=/usr/sbin/mosquitto ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Restart=on-failure Restart=on-failure
[Install] [Install]