mirror of
https://github.com/linuxserver/docker-kasm.git
synced 2026-01-23 02:24:38 +00:00
14 lines
355 B
Text
14 lines
355 B
Text
#!/usr/bin/with-contenv bash
|
|
|
|
_term() {
|
|
if [ -f "/opt/kasm/bin/stop" ]; then
|
|
echo "Caught SIGTERM signal!"
|
|
echo "Stopping Kasm Containers"
|
|
/opt/kasm/bin/stop
|
|
pid=$(pidof stop)
|
|
# terminate when the stop process dies
|
|
tail --pid=${pid} -f /dev/null
|
|
fi
|
|
}
|
|
|
|
exec /usr/local/bin/dockerd-entrypoint.sh -l error --data-root /opt/docker
|