nixos/tailscale-auth: restart on-failure and wait for tailscaled
This commit is contained in:
committed by
GitHub
parent
e5a8e186e0
commit
133974d017
@@ -68,6 +68,7 @@ in
|
|||||||
systemd.services.tailscale-nginx-auth = {
|
systemd.services.tailscale-nginx-auth = {
|
||||||
description = "Tailscale NGINX Authentication service";
|
description = "Tailscale NGINX Authentication service";
|
||||||
requires = [ "tailscale-nginx-auth.socket" ];
|
requires = [ "tailscale-nginx-auth.socket" ];
|
||||||
|
after = [ "tailscaled.service" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = getExe cfg.package;
|
ExecStart = getExe cfg.package;
|
||||||
@@ -107,6 +108,8 @@ in
|
|||||||
"~@privileged"
|
"~@privileged"
|
||||||
"~@setuid"
|
"~@setuid"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user