diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 31cc35e311..f0f71132b2 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -94,6 +94,8 @@ set_target_properties(libmosquitto PROPERTIES OUTPUT_NAME mosquitto VERSION ${VERSION} SOVERSION 1 + LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version" ) install(TARGETS libmosquitto diff --git a/service/systemd/mosquitto.service.notify b/service/systemd/mosquitto.service.notify index 06772ddadd..fad3dbaa1d 100644 --- a/service/systemd/mosquitto.service.notify +++ b/service/systemd/mosquitto.service.notify @@ -1,8 +1,8 @@ [Unit] Description=Mosquitto MQTT Broker Documentation=man:mosquitto.conf(5) man:mosquitto(8) -After=network.target -Wants=network.target +After=network-online.target +Wants=network-online.target [Service] Type=notify diff --git a/service/systemd/mosquitto.service.simple b/service/systemd/mosquitto.service.simple index 15ee0d62db..c2a330b96a 100644 --- a/service/systemd/mosquitto.service.simple +++ b/service/systemd/mosquitto.service.simple @@ -1,8 +1,8 @@ [Unit] Description=Mosquitto MQTT Broker Documentation=man:mosquitto.conf(5) man:mosquitto(8) -After=network.target -Wants=network.target +After=network-online.target +Wants=network-online.target [Service] ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf