-
Notifications
You must be signed in to change notification settings - Fork 41
Using signals for actions other that shutdown #64
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
Comments
This sounds like a reasonable addition to me, I guess you're after similar semantics like httpd or similar, i.e.
I can see that be useful indeed, esp. if you're managing some child processes... Have you thought about how to surface it in API? WDYT? Would you like to send in a PR for this? |
+1 on @ktoso design proposal |
This would be nice, missed this issue when opening #81 |
@hassila @humnandy
|
I added support for HUP too.
(or even better, look at how it's done in setupShutdownHook in Lifecycle.swift...) |
nice! should we close this issue once your PR lands? |
@tomerd definitely, in case any additional signals would be needed in the future they are trivial to add. I think HUP and USR1/USR2 are the most useful ones. |
closed via #86 |
Is there support for trapping signals for anything other than shutdown hooks?
Linux services will often trap SIGHUP to reload configuration without stopping the service.
I believe that a Windows service can handle a SERVICE_ACCEPT_PARAMCHANGE state request to do the same thing.
This would be a useful feature for production services.
The text was updated successfully, but these errors were encountered: