Git Product home page Git Product logo

Comments (3)

krallin avatar krallin commented on June 14, 2024

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.

from tini.

djMax avatar djMax commented on June 14, 2024

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!

from tini.

kbulygin avatar kbulygin commented on June 14, 2024

@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.

from tini.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.