From 560519b8d18a9c22fc881d760111747bda9d332e Mon Sep 17 00:00:00 2001 From: John-Michael Mulesa Date: Sun, 23 May 2021 23:41:07 +1000 Subject: [PATCH] Fix avahi-daemon dependency in systemd init script. 'After:' only specifies when in the ordering that systemd will attempt to start your unit file, however if one of the listed services is disabled, it won't directly enable the disabled service. 'Requires:' should do exactly that: call the dependency that's needed in order to start the service, regardless of its enablement state on the system. --- owntone.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/owntone.service.in b/owntone.service.in index 20774d86..ad5a9b49 100644 --- a/owntone.service.in +++ b/owntone.service.in @@ -1,7 +1,8 @@ [Unit] Description=DAAP/DACP (iTunes), RSP and MPD server, supports AirPlay and Remote Documentation=man:owntone(8) -After=network.target sound.target remote-fs.target pulseaudio.service avahi-daemon.service +Requires=network.target local-fs.target avahi-daemon.socket +After=network.target sound.target remote-fs.target pulseaudio.service [Service] ExecStart=@sbindir@/owntone -f