mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
nixos/tailscale-auth: restart on-failure and wait for tailscaled (#393038)
This commit is contained in:
commit
ea34fcd8ae
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ in
|
|||
systemd.services.tailscale-nginx-auth = {
|
||||
description = "Tailscale NGINX Authentication service";
|
||||
requires = [ "tailscale-nginx-auth.socket" ];
|
||||
after = [ "tailscaled.service" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = getExe cfg.package;
|
||||
|
@ -107,6 +108,8 @@ in
|
|||
"~@privileged"
|
||||
"~@setuid"
|
||||
];
|
||||
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue