-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow ACLs to be reloaded with SIGHUP #601
Conversation
This commit starts to wire up better signal handling, it starts with handling shutdown a bit better, using the graceful shutdown for all the listeners we use. It also adds the initial switch case for handling config and acl reload, which is to be implemented.
Also continously listen for signals, not just once.
Given that this is the case, is there any possible issue with setting a cronjob for running |
@GoodiesHQ I would assume that is fine, how performant/problematic is hard to predict, but there shouldnt be anything wrong with it. |
This PR partially resolves #173, allowing the users to send a reload signal (SIGHUP) to headscale to reload the ACL policies.
In addition, sending a SIGTERM, SIGINT etc, will now attempt to shutdown headscale gracefully.