Files
xserver-vnc/app/app.sh
T
2024-05-13 21:47:43 +02:00

18 lines
302 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://docs.docker.com/compose/faq/
# https://medium.com/@gchudnov/trapping-signals-in-docker-containers-7a57fdda7d86