fix(daemon): wait for network-online.target (#2721)

network.target does not guarantee interfaces are fully configured, which
can result in bound addresses not being available when the daemon
starts. This leads to errors on start-up and potentially broken
connectivity.
network-online.target does provide these guarantees, but needs a
slightly different dependency configuration with Wants= on top of After=
(cf. systemd.special(7)).

Closes #2720.
This commit is contained in:
FallenWarrior2k 2022-03-01 04:25:07 +01:00 committed by GitHub
parent d115ee6dfb
commit e7272fc340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
Wants=network-online.target
After=network-online.target
[Service]
User=transmission