1
0
mirror of https://github.com/playit-cloud/playit-agent.git synced 2025-02-23 11:16:24 +00:00
DerRockWolf afba4cad49 fix(docker/entrypoint.sh): Use exec to replace the shell (#109)
This should be done to allow the container to properly react to unix signals (e.g., `SIGTERM`).

Currently, PID 1 is `sh` which is executing the script until the `playit` binary stops.
When the pod is stopped, e.g., using `docker stop` or in Kubernetes, when the pod is being deleted, the container runtime sends a `SIGTERM` to PID 1 to allow for graceful termination. `sh` however, does not handle signals, which results in the container running indefinitely until the container runtime sends a `SIGKILL`.
2025-02-05 13:04:02 -08:00
..