mirror of
https://github.com/kaboomserver/buildpack.git
synced 2025-07-23 14:03:35 +00:00
Try shutdown timer
This commit is contained in:
parent
f0ba53e2ef
commit
00f757ffdc
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
|||
shutdown() {
|
||||
echo "SHUTDOWN"
|
||||
kill $(pgrep java)
|
||||
kill $(pgrep ssh)
|
||||
sleep 5
|
||||
}
|
||||
|
||||
trap shutdown SIGINT SIGTERM
|
||||
trap shutdown SIGTERM
|
||||
|
||||
mkdir -p crash-reports/ dumps/
|
||||
echo "$PRIVATE_KEY" > .ssh/id_rsa
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue