Order network jobs after DNS readiness
This commit is contained in:
parent
23e1fa7a0c
commit
85b1c3ecbf
3 changed files with 45 additions and 0 deletions
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue