From dfcf093911b57ede8eaac242fabed6f3ba7d712f Mon Sep 17 00:00:00 2001 From: Terry Burton Date: Sun, 5 Feb 2023 17:26:32 +0000 Subject: [PATCH] Document TINI_KILL_PROCESS_GROUP environment variable --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9caf8aa..1f2c106 100644 --- a/README.md +++ b/README.md @@ -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 ###