mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Try shutdown timer
This commit is contained in:
parent
f0ba53e2ef
commit
00f757ffdc
|
@ -2,10 +2,10 @@
|
||||||
shutdown() {
|
shutdown() {
|
||||||
echo "SHUTDOWN"
|
echo "SHUTDOWN"
|
||||||
kill $(pgrep java)
|
kill $(pgrep java)
|
||||||
kill $(pgrep ssh)
|
sleep 5
|
||||||
}
|
}
|
||||||
|
|
||||||
trap shutdown SIGINT SIGTERM
|
trap shutdown SIGTERM
|
||||||
|
|
||||||
mkdir -p crash-reports/ dumps/
|
mkdir -p crash-reports/ dumps/
|
||||||
echo "$PRIVATE_KEY" > .ssh/id_rsa
|
echo "$PRIVATE_KEY" > .ssh/id_rsa
|
||||||
|
|
Loading…
Reference in a new issue