-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: force kill daemons after timeout #441
Conversation
This PR re-adds a feature that was removed in 1.0.0 whereby daemons are force killed with a SIGKILL when they do not stop within a timeout. It adds 2 new options to the `Daemon` class - `forceKill` (boolean - default `true`) and `forceKillTimeout` (number - default 10000).
The new options need documenting here: https://github.com/ipfs/js-ipfsd-ctl#stop |
Answering the question in ipfs/interop#96 (comment), just send a SIGKILL. There's no real need to wait the 10s. If someone wants to try to debug this:
|
@Stebalien thanks, so maybe we should reduce the timeout, wait 5s for |
SGTM! |
@hugomrdias I've pushed changes to this branch that address the PR comments (I think) - can it go in? |
This PR re-adds a feature that was removed in 1.0.0 whereby daemons are force killed with a SIGKILL when they do not stop within a timeout.
It adds 2 new options to the
Daemon
class -forceKill
(boolean - defaulttrue
) andforceKillTimeout
(number - default 10000).resolves #438