]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
MQTT: fix warning when starting service 2137/head
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Thu, 22 Jan 2026 19:53:48 +0000 (14:53 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 26 Jan 2026 15:24:22 +0000 (10:24 -0500)
This fixes the following warning:

    shairport-sync[293]: [MQTT]: Could not establish a mqtt connection

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
configure.ac

index 31b8bc203146deab995cdd9059b6b2fd0d4f0840..bd289c748c44ec8dc9aa63bbf523465d29f2c77f 100644 (file)
@@ -389,6 +389,8 @@ AC_ARG_WITH(mqtt-client, [AS_HELP_STRING([--with-mqtt-client],[include a client
 if test "x$with_mqtt_client" = "xyes" ; then
   AC_DEFINE([CONFIG_MQTT], 1, [Include a client for MQTT, the Message Queuing Telemetry Transport protocol])
   AC_CHECK_LIB([mosquitto], [mosquitto_lib_init], , AC_MSG_ERROR(MQTT support requires the mosquitto library -- libmosquitto-dev suggested!))
+  systemd_after_args="${systemd_after_args} mosquitto.service"
+  systemd_requires_args="${systemd_requires_args} mosquitto.service"
 fi
 AM_CONDITIONAL([USE_MQTT], [test "x$with_mqtt_client" = "xyes"])