Merge pull request #14 from shokinn/fix-service-dependencies

Add dependency to network-online.target for authentik.service
This commit is contained in:
WilliButz 2024-01-28 13:00:07 +01:00 committed by GitHub
commit bc628c0094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,6 +175,7 @@ in
}; };
authentik = { authentik = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ after = [
"network-online.target" "network-online.target"
"postgresql.service" "postgresql.service"
@ -225,6 +226,7 @@ in
{ {
systemd.services.authentik-ldap = { systemd.services.authentik-ldap = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ after = [
"network-online.target" "network-online.target"
"authentik.service" "authentik.service"