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.
This commit is contained in:
John-Michael Mulesa 2021-05-23 23:41:07 +10:00
parent a597737cad
commit 560519b8d1

View File

@ -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