tink server doesn't handle os signals #527
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
A running
tink-server
does not shut down when a Linux signal (SIGINT, SIGQUIT, SIGTERM) is sent.Expected Behaviour
When a SIGINT, SIGQUIT, or SIGTERM is sent to
tink-server
, it should shut down the gRPC and HTTP servers and exit.Current Behaviour
Sending SIGINT, SIGQUIT, or SIGTERM does nothing. Servers do not shut down.
Possible Solution
One possible solutions is to remove this
<-ctx.Done
line, and addcloser()
after a signal is received here.Steps to Reproduce (for bugs)
tink-server
.docker-compose up
tink-server
container.docker exec -it tink_tinkerbell_1 sh
kill -SIGINT 1
kill -SIGQUIT 1
kill -SIGTERM 1
Context
Your Environment
Operating System and version (e.g. Linux, Windows, MacOS):
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: