Thread: [Solved] Jdownloader in Synology
View Single Post
Old 05.04.2018, 15:52
Chercheursoft Chercheursoft is offline
Baby Loader
Join Date: Apr 2018
Location: France
Posts: 6
Thumbs up Jdownloader in Synology


There is already this kind of thread but it becomes very old with many answers in both English and German that makes it hard to follow

The above procedure explains what I did to have Jdownloader working inside my Synology DS216/II with latest DSM F/W.
This procedure is deeply made from explanations coming from existing threads

Hi if it can help, here is what I made to have Jdownloader working and restarting in case of Syno restart:

Install JAVA8 (from Paquet center)

Create a Jdownloader directory inside /volume1/@appstore/
Go to that directory and follow instructions of :

Take care it needs to be in Root mode (so perform a sudo -i and enter password before)

make: wget

then: java -jar JDownloader.jar -norestart
repeat this command until JDownloader asks you to enter your MyJDownloader login/password on console
you can now remote control your JDownloader instance via MyJDownloader with the credentials created before

At this step it should already work with and proper login/password created during the installation.

Stop Jdownloader

Go to /usr/local/etc and create a directory /rc.d
Inside this directory create a file with the following content

# Startup script for jdownloader2
# Stop myself if running
start() {
sleep 5
nohup /volume1/@appstore/Java8/j2sdk-image/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/Jdownloader/JDownloader.jar >/dev/null 2>/dev/null&
stop() {
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}`
# remove pidfile
rm -f $PIDFILE
case "$1" in
sleep 10
echo "Usage: $0 (start|stop|restart)"
exit 1
# End

Chmod this file to 0777

Reboot your NAS voila !

I have also this line in the task scheduler menu (non activated)

/usr/local/etc/rc.d/ start (in root mode)
In case you want to restart manually without rebooting the NAS

For all those settings you have to validate the SSH and my advice is to devalidate the SSH as soon as you do not need as SSH can be dangerous for security

My doubt about this configuration is "will the .sh file keep when there will be a DSM update ?"

Good luck


Last edited by Jiaz; 06.04.2018 at 10:40.
Reply With Quote