-
Notifications
You must be signed in to change notification settings - Fork 721
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
[BUG] - Node should cleanly exit on SIGTERM #1697
Labels
cli revision
is used to group all the Node CLI tickets
enhancement
New feature or request
minorfix
Something that needs to be fixed (e.g. a hard-coded constant), but that isnt a bug
Comments
The way we handle this in cardano-wallet is to install a signal handler which translates SIGTERM to SIGINT. |
kevinhammond
added
the
minorfix
Something that needs to be fixed (e.g. a hard-coded constant), but that isnt a bug
label
Aug 25, 2020
vix-io
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Sep 23, 2020
I'm not sure why this was changed to an enhancement @vix-io. This is absolutely a bug... |
swinful
added a commit
to swinful/cnode_stakepool
that referenced
this issue
Dec 30, 2021
- Fixes #3 via recommendations from [reqlez]. Using SIGINT improves node start times. + IntersectMBO/cardano-node#1697
Hi @disassembler , not my decision - this was changed based on internal discussions with the node team. |
I suspect this is related to this GHC issue: https://gitlab.haskell.org/ghc/ghc/-/issues/10169 |
DavidEichmann
added a commit
that referenced
this issue
Feb 23, 2022
This is important for graceful shutdown, cleaning up resources in `bracket` statements. Fixes #1697
DavidEichmann
added a commit
that referenced
this issue
Feb 24, 2022
This is important for graceful shutdown, cleaning up resources in `bracket` statements. Fixes #1697
DavidEichmann
added a commit
that referenced
this issue
Mar 2, 2022
This is important for graceful shutdown, cleaning up resources in `bracket` statements. Fixes #1697
iohk-bors bot
added a commit
that referenced
this issue
Mar 3, 2022
3641: RTS workaround converting SIGTERM into SIGINT r=DavidEichmann a=DavidEichmann This is important for graceful shutdown, cleaning up resources in `bracket` statements. Fixes #1697 Co-authored-by: David Eichmann <EichmannD@gmail.com> Co-authored-by: Jean-Baptiste Giraudeau <jean-baptiste.giraudeau@iohk.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cli revision
is used to group all the Node CLI tickets
enhancement
New feature or request
minorfix
Something that needs to be fixed (e.g. a hard-coded constant), but that isnt a bug
Internal/Exernal
Internal if an IOHK staff member.
Summary
The node only cleanly exits on SIGINT (ctrl-c) and not SIGTERM. This makes the default systemd signal handler stop the node in a way it takes longer to restart. We work around this by changing the signal it gets in the systemd service, but this should probably be fixed in the node.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
System info (please complete the following information):
Screenshots and attachments
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: