Files
deploy/entrypoint.sh
T
Gergely CzuczyandGitHub 46a1eb64a0 feat: tini as ENTRYPOINT and related cosmetics (#12707)
* Use tini as the ENTRYPOINT implicitly

Signed-off-by: Gergely Czuczy <[email protected]>

* Explicitly call /bin/cp instead of relying on PATH

Signed-off-by: Gergely Czuczy <[email protected]>

* POSIX sh is sufficient for entrypoint.sh

Signed-off-by: Gergely Czuczy <[email protected]>

* Add 2.6-2.7 to docs indexes

Signed-off-by: Gergely Czuczy <[email protected]>

* Add note on tini on entry to 2.6-2.7 upgrade notes

Signed-off-by: Gergely Czuczy <[email protected]>

* Added note to 2.7-2.8 notes on tini as entry

Signed-off-by: Gergely Czuczy <[email protected]>

---------

Signed-off-by: Gergely Czuczy <[email protected]>
2023-03-10 12:31:20 -05:00

10 lines
203 B
Bash
Executable File

#!/bin/sh
# If we're started as PID 1, we should wrap command execution through tini to
# prevent leakage of orphaned processes ("zombies").
if test "$$" = "1"; then
exec tini -- $@
else
exec "$@"
fi