Closed richard-browne closed 3 years ago
No — TIni will by default only signal its immediate child, which here will be nginx (using exec
in your script replaces the /bin/sh
process with TIni). You can add -g
to have Tini wait for all children, but note that Tini will still only wait for its first child (i.e shel to exit). If you need something fancier, you'll want to use something a bit more complex than Tini — Tini is for reaping zombies but it's not a process manager.
Suppose I have a docker container thus:
ENTRYPOINT ["/sbin/tini", "--", "entrypoint.sh"]
Will tini forward SIGTERM to both nginx and crond? Ie. With 'docker stop' will both my processes receive SIGTERM?