Comments (3)
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.
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.
@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)
- Forward env vars HOT 3
- How come tini proxies signals to child processes if the sigcgt bits are all 0? HOT 1
- CentOS 7 - tini version detected as malware HOT 5
- SIGTERM not working with exec command in the entrypoint script HOT 4
- ownership of /proc/1/* is root even the user is non-root HOT 3
- Support setuid and setguid before execute command?
- Supress TRACE but show DEBUG HOT 1
- Event not generated when File change happens HOT 1
- About Tini version planning? HOT 2
- aarch64 version available? HOT 3
- Non-terminal signals are killing containers running with --init flag HOT 3
- stack-protector not work HOT 4
- [FATAL tini (7)] exec bash failed: No such file or directory HOT 3
- [CVE-2023-25139]tini-static executable seems vulnerable HOT 1
- example / explanation HOT 1
- How can I confirm that tini is running? HOT 1
- prctl(PR_SET_PDEATHSIG, ...) should be called after fork(), not before HOT 4
- MI6&termux&clang-16 build failed HOT 2
- Using "docker run --init" with arguments to tini HOT 2
- tini docker windows container HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tini.