chore(coredns): wait for network connectivity to improve service reliability
Added network-online.target to after and wants arrays to ensure CoreDNS service starts only after network is available. This prevents service failures due to missing DNS resolution during system boot.
This commit is contained in:
@@ -91,7 +91,8 @@ in {
|
||||
'';
|
||||
};
|
||||
coredns = {
|
||||
after = ["decrypt-coredns-keys.service"];
|
||||
after = ["decrypt-coredns-keys.service" "network-online.target"];
|
||||
wants = ["network-online.target"];
|
||||
requires = ["decrypt-coredns-keys.service"];
|
||||
|
||||
# Copy zone file from Nix store to writable location on service start
|
||||
|
||||
Reference in New Issue
Block a user