JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01.11.2021, 16: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
  #2  
Old 01.11.2021, 17:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@jdGuy: you literally tell JDownloader to NOT restart
Quote:
Originally Posted by jdGuy View Post
Code:
cd /opt/jdownloader/ && screen -dmS jdownloader java -jar JDownloader.jar -norestart
the "-norestart" parameter is meant for first time setup so you have chance to enter your MyJDownloader logins in console. do not use it for further starts
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 07:01.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.