Merge pull request #1959 from peteakalad/master

Systemd service changes for updated pid path
pull/1964/head
Roger Light 5 years ago committed by GitHub
commit 7a7fe8b80a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -869,7 +869,7 @@ log_timestamp_format %Y-%m-%dT%H:%M:%S
<para>If mosquitto is being automatically started by an <para>If mosquitto is being automatically started by an
init script it will usually be required to write a pid init script it will usually be required to write a pid
file. This should then be configured as e.g. file. This should then be configured as e.g.
/var/run/mosquitto.pid</para> /var/run/mosquitto/mosquitto.pid</para>
<para>Not reloaded on reload signal.</para> <para>Not reloaded on reload signal.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

@ -145,7 +145,7 @@
# Write process id to a file. Default is a blank string which means # Write process id to a file. Default is a blank string which means
# a pid file shouldn't be written. # a pid file shouldn't be written.
# This should be set to /var/run/mosquitto.pid if mosquitto is # This should be set to /var/run/mosquitto/mosquitto.pid if mosquitto is
# being run automatically on boot with an init script and # being run automatically on boot with an init script and
# start-stop-daemon or similar. # start-stop-daemon or similar.
#pid_file #pid_file

@ -12,6 +12,8 @@ ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto
ExecStartPre=/bin/chown mosquitto: /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
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

@ -10,6 +10,8 @@ ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto
ExecStartPre=/bin/chown mosquitto: /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
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

Loading…
Cancel
Save