View Single Post
  #4  
Old 21.07.2017, 13:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 69,982
Default

write little script, eg start.sh

Code:
#!/bin/bash
cd /pathtoJDownloader
java -Djava.awt.headless=true -jar JDownloader.jar >/dev/null 2>/dev/null &
chmod +x start.sh

now edit /etc/rc.local

add line to start.sh, next start your system will execute the script

in case you want to use a different user

su -c "...start.sh" user
__________________
JD-Dev & Server-Admin
Reply With Quote