k.heroku-deploy.2.0.16.source-code.heroku_with_jstack.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heroku-deploy Show documentation
Show all versions of heroku-deploy Show documentation
Library for deploying Java applications to Heroku
#!/usr/bin/env bash
eval "$@ &"
pid=$!
trap "kill -3 $pid; kill $pid" SIGTERM
trap "kill -9 $pid; exit" SIGKILL
sleep 10
while kill -0 $pid
do
if [ -z "$JSTACK_INTERVAL" ]; then
sleep 10
else
kill -3 $pid
sleep ${JSTACK_INTERVAL}
fi
done