When an update in JD2 was triggered and it restarted, the docker stopped. The added script should:

a) prevent it
b) kill JD gradually, when docker stop is being executed on this container
This commit is contained in:
PlusMinus 2015-08-28 15:39:01 +02:00
parent 5e0f5ecc3b
commit ee524983cd

17
startJD2.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
function stopJD2 {
PID=$(cat JDownloader.pid)
kill $PID
wait $PID
exit
}
trap stopJD2 EXIT
java -Djava.awt.headless=true -jar JDownloader.jar
while true; do
sleep inf
done