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.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
if ! which -- "${1}"; then
|
||||
# first arg is not an executable
|
||||
exec node /usr/src/app/ -p 80 "$@"
|
||||
exec node /usr/src/app/ "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user