nixpkgs/pkgs/servers/headscale/sigterm-fix.patch
Jennifer Graul 37947d59ea headscale: fix reacting to SIGTERM
The current version of headscale does not react to SIGTERMs and so it
can only be terminated by a SIGKILL at the moment. This commit provides
a patch to fix this.
2024-08-21 16:17:20 +03:00

12 lines
248 B
Diff

diff --git a/hscontrol/app.go b/hscontrol/app.go
index b8dceba..4bcf019 100644
--- a/hscontrol/app.go
+++ b/hscontrol/app.go
@@ -821,6 +821,7 @@ func (h *Headscale) Serve() error {
// And we're done:
cancel()
+ return
}
}
}