Try shutdown timer

This commit is contained in:
mathias 2018-11-24 23:47:08 +02:00
parent f0ba53e2ef
commit 00f757ffdc

View file

@ -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