View Single Post
  #1  
Old 01.11.2021, 15:40
jdGuy jdGuy is offline
Modem User
 
Join Date: Nov 2021
Posts: 1
Default Headless Linux problem: No Start after update

Hello,

i've been using JDL on my Linux machine. It works perfect (even after rebooting the Server), but once there's a update available, it doesnt start again unless i go manually into the process and hit "enter" or restart it by forcing it.

Is there any workaround or script that does that job automatically?

For now i use that one after every update, but its not working 100%.


Code:
killall java
echo "$(tput setaf 1)JDownloader Fixer"
screen -S jdownloader -p 0 -X quit
cd /opt/jdownloader/ && screen -dmS jdownloader java -jar JDownloader.jar -norestart
sleep 30
screen -S jdownloader -p 0 -X quit
cd /opt/jdownloader/ && screen -dmS jdownloader java -jar JDownloader.jar -norestart
and trying this FIX2 script... but its very dirty.


Code:
killall java
echo "$(tput setaf 1)JDownloader Fixer"
screen -S jdownloader -p 0 -X quit
cd /opt/jdownloader/ && rm -r Core.jar && rm -r update && rm -r tmp && rm -r JDownloader.jar
cd /opt/jdownloader/ && wget http://installer.jdownloader.org/JDownloader.jar
sleep 5
cd /opt/jdownloader/ && screen -dmS jdownloader java -jar JDownloader.jar -norestart
sleep 300
killall java
screen -S jdownloader -p 0 -X quit
cd /opt/jdownloader && screen -dmS jdownloader java -jar JDownloader.jar
Reply With Quote