Skip to content
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

Preventing SIGKILL #189

Open
bushig opened this issue Mar 15, 2017 · 4 comments
Open

Preventing SIGKILL #189

bushig opened this issue Mar 15, 2017 · 4 comments

Comments

@bushig
Copy link

bushig commented Mar 15, 2017

There should be a way to prevent sending SIGKILL to all processes on 5 seconds timeout. What about making KILL_WAIT environmental variable?

@bsergean
Copy link

bsergean commented Jan 3, 2020

I believe that by UNIX guidelines, SIGKILL cannot be trapped.

@ghost
Copy link

ghost commented Oct 15, 2021

What I think bushig meant is not to trap any SIGKILL, but to not send any SIGKILL to processes if you don't want to. I have some processes that might take more than 5 seconds to gracefully stop, and honcho is killing them if they don't terminate in these 5 seconds. Disabling these behavior (or customizing it) through a command line argument would be great.

@rafrafek
Copy link
Contributor

So instead of:

KILL_WAIT = 5

it could be something like this:

KILL_WAIT = os.environ.get('KILL_WAIT', 5)

@bsergean
Copy link

Ah I see I misread that. Also it would probably be best to set KILL_WAIT to something sensible if the value passed in is bogus (say a string or negative value) for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants