17 lines
263 B
Bash
Executable File
17 lines
263 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -x
|
|
|
|
source /app/signals.sh
|
|
|
|
signals_trap_with_arg func_trap TERM
|
|
|
|
/app/server.sh &
|
|
PID=-1
|
|
|
|
# wait forever
|
|
while true
|
|
do
|
|
tail -f /dev/null & wait ${!}
|
|
done
|
|
|
|
# https://medium.com/@gchudnov/trapping-signals-in-docker-containers-7a57fdda7d86 |