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:
parent
a597737cad
commit
560519b8d1
|
@ -1,7 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=DAAP/DACP (iTunes), RSP and MPD server, supports AirPlay and Remote
|
Description=DAAP/DACP (iTunes), RSP and MPD server, supports AirPlay and Remote
|
||||||
Documentation=man:owntone(8)
|
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]
|
[Service]
|
||||||
ExecStart=@sbindir@/owntone -f
|
ExecStart=@sbindir@/owntone -f
|
||||||
|
|
Loading…
Reference in New Issue