Document TINI_KILL_PROCESS_GROUP environment variable

This commit is contained in:
Terry Burton 2023-02-05 17:26:32 +00:00
parent 0b44d36658
commit dfcf093911
No known key found for this signature in database
GPG Key ID: 11E9CA74601C8B2A
1 changed files with 9 additions and 4 deletions

View File

@ -202,10 +202,15 @@ and ctrl-C it, nothing happens: SIGINT is sent to the 'sh' process,
but that shell won't react to it while it is waiting for the 'sleep'
to finish.
With the `-g` option, Tini kills the child process group , so that
every process in the group gets the signal. This corresponds more
closely to what happens when you do ctrl-C etc. in a terminal: The
signal is sent to the foreground process group.
You can configure Tini to kill the child process group, so that every process
in the group gets the signal, by either:
+ Passing the `-g` argument to Tini (`tini -g -- ...`)
+ Setting the environment variable `TINI_KILL_PROCESS_GROUP`
(e.g. `export TINI_KILL_PROCESS_GROUP=`).
This corresponds more closely to what happens when you do ctrl-C etc. in a
terminal: The signal is sent to the foreground process group.
### Parent Death Signal ###