Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headscale: fix reacting to SIGTERM #254934

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

NetaliDev
Copy link
Member

Description of changes

The current version of headscale does not react to SIGTERMs and so it can only be terminated by a SIGKILL at the moment. This PR provides a patch to fix this.

The fix is taken from here. For more information about this, see the related issue here.

I use this fix for my headscale and it works like a charm for weeks now.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@tomfitzhenry
Copy link
Contributor

FWIW, this fix is now in upstream:

@06kellyjac
Copy link
Member

Itd probably be best to fetchPatch the merged commit or wait for the next release if thats set to happen swiftly

@NetaliDev
Copy link
Member Author

I'll wait for the next release

@NetaliDev NetaliDev closed this Sep 22, 2023
@K900
Copy link
Contributor

K900 commented Mar 11, 2024

The Next Release has not happened yet and it's been half a year. Should we dig this up?

@K900
Copy link
Contributor

K900 commented Aug 21, 2024

So it's been another, uh, A While. I'm just going to merge this in a few hours unless someone is opposed.

@K900 K900 reopened this Aug 21, 2024
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.
@K900 K900 merged commit 6c31eb9 into NixOS:master Aug 22, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants