Skip to content

Commit aa7d196

Browse files
committed
pass TERM signal to application
1 parent 9ded1b0 commit aa7d196

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

33
set -e
4+
trap 'kill -TERM $app 2>/dev/null' TERM
45

5-
$PRESTO_HOME/bin/launcher run
6+
$PRESTO_HOME/bin/launcher run &
7+
app=$!
8+
wait $app

0 commit comments

Comments
 (0)