Add network-online.target and documentation to unitfile

epel9
Rich Mattes 7 years ago
parent bc8c7720f5
commit 5982ba3134

@ -0,0 +1,12 @@
diff -up ./service/systemd/mosquitto.service.notify.unitfile ./service/systemd/mosquitto.service.notify
--- ./service/systemd/mosquitto.service.notify.unitfile 2018-05-26 15:46:57.685875480 -0400
+++ ./service/systemd/mosquitto.service.notify 2018-05-26 15:47:31.119012736 -0400
@@ -1,5 +1,8 @@
[Unit]
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
+Documentation=man:mosquitto.conf(5) man:mosquitto(8)
+After=network-online.target
+Wants=network-online.target
[Service]
Type=notify

@ -1,6 +1,6 @@
Name: mosquitto Name: mosquitto
Version: 1.5 Version: 1.5
Release: 2%{?dist} Release: 3%{?dist}
Summary: An Open Source MQTT v3.1/v3.1.1 Broker Summary: An Open Source MQTT v3.1/v3.1.1 Broker
License: BSD License: BSD
@ -20,6 +20,9 @@ Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
# Add documentation and network dependency to unit file
Patch0: %{name}-1.5-unitfile.patch
%description %description
Mosquitto is an open source message broker that implements the MQ Telemetry Mosquitto is an open source message broker that implements the MQ Telemetry
Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method
@ -37,6 +40,7 @@ Development headers and libraries for %{name}
%prep %prep
%setup -q %setup -q
%patch0 -p0 -b .unitfile
# Remove bundled uthash.h # Remove bundled uthash.h
rm -r src/uthash.h rm -r src/uthash.h
# Set the install prefix to /usr # Set the install prefix to /usr
@ -101,6 +105,9 @@ exit 0
%{_mandir}/man3/*.3.* %{_mandir}/man3/*.3.*
%changelog %changelog
* Sat May 26 2018 Rich Mattes <richmattes@gmail.com> - 1.5-3
- Add network-online.target and documentation to unitfile
* Sat May 26 2018 Rich Mattes <richmattes@gmail.com> - 1.5-2 * Sat May 26 2018 Rich Mattes <richmattes@gmail.com> - 1.5-2
- Use upstream systemd service and enable systemd notification support - Use upstream systemd service and enable systemd notification support
(rhbz#1410654) (rhbz#1410654)

Loading…
Cancel
Save