tileserver-gl/docker-entrypoint_light.sh
zstadler f242cc1760
Simplify signal handling (#771)
Avoid implementing a complex signal relaying mechanism in `docker-entrypoint*.sh`
Instead, the shell performs `exec node ...` and the `node` process receives the signals directly.

Related to #560, #575, which were my initial implemetation.
2023-02-18 23:51:48 -05:00

8 lines
117 B
Bash

#!/bin/sh
if ! which -- "${1}"; then
# first arg is not an executable
exec node /usr/src/app/ "$@"
fi
exec "$@"