Order network jobs after DNS readiness

This commit is contained in:
rope 2026-09-15 13:50:03 +01:00
parent 23e1fa7a0c
commit 85b1c3ecbf
3 changed files with 45 additions and 0 deletions

View file

@ -142,5 +142,17 @@ in
enable = true;
registerBouncer.enable = true;
};
# CrowdSec setup and hub refresh both contact the upstream hub. The
# generic online target does not become inactive when local DNS restarts,
# so explicitly order these jobs after AdGuard's DNS-readiness check.
systemd.services.crowdsec-setup = {
after = [ "adguardhome.service" ];
wants = [ "adguardhome.service" ];
};
systemd.services.crowdsec-update-hub = {
after = [ "adguardhome.service" ];
wants = [ "adguardhome.service" ];
};
};
}