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

Feature request - reload? #71

Closed
djMax opened this issue Jan 6, 2017 · 3 comments
Closed

Feature request - reload? #71

djMax opened this issue Jan 6, 2017 · 3 comments

Comments

@djMax
Copy link

djMax commented Jan 6, 2017

I know this is probably a pretty contentious topic. But I would find it immensely useful if there was some way to tell tini "I don't want the container to end, but I would like you to restart the main child process now."

Is there any way to do this or to safely layer something in that will?

@krallin
Copy link
Owner

krallin commented Jan 14, 2017

This does feel overly out of scope (I'm sorry!), mainly because restarting the child isn't a very well defined operation, and seems to me like something that should be left to a more complete process management system like Supervisord, which should do exactly this when you send it SIGHUP (perhaps you'd want with Tini sitting in front of it to handle zombie reaping).

That being said, if you can have your child respond to something like the USR1 signal to restart itself, Tini can properly forward it. That's a more lightweight solution than using e.g. Supervisord.

@krallin krallin closed this as completed Jan 14, 2017
@djMax
Copy link
Author

djMax commented Jan 14, 2017

Thanks, makes sense. The tricky bit is that intermediate process also has to do what tini does re: signal forwarding. But yes, I want cake and I want to eat it too. Thanks for the response!

@kbulygin
Copy link

kbulygin commented May 12, 2018

@krallin I wanted a similar thing (restarting with SIGHUP while passing other signals). Thanks for suggesting Supervisor. It looks like the right tool indeed, despite that it's a bit heavy. Just a minor note regarding "perhaps you'd want with Tini sitting in front of it to handle zombie reaping": Supervisor itself seems to have this feature since 2006. Like with Tini, one has to be careful to run it with PID 1 though.

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