unbound.service.d: add fedora-network-pre.conf

This commit is contained in:
Aminda Suomalainen 2023-08-04 13:09:58 +03:00
parent 34b4ffb8ac
commit 9fdeb56762
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -0,0 +1,11 @@
# This override attempts to ensure Unbound is running when network gets
# connected as opposed to starting at that time to ensure DNS functions for
# everything dependent on DNS in addition to just internet connectivity
[Unit]
After=
# Copy-pasted from Fedora (systemtl show unbound.service) except
# network-online.target is network-pre.target
After=unbound-keygen.service unbound-anchor.service systemd-journald.socket sysinit.target network-pre.target system.slice basic.target
[Install]
WantedBy=multi-user.target network-online.target