Line 31: |
Line 31: |
| here you need an account with your password from http://my.jdownloader.org/ | | here you need an account with your password from http://my.jdownloader.org/ |
| * now you can launch the java software | | * now you can launch the java software |
− | java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar | + | java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar -norestart |
| | | |
| JD2 will ask to update, answer yes (y), then it need to restart | | JD2 will ask to update, answer yes (y), then it need to restart |
| | | |
| * launch again the java software | | * launch again the java software |
− | java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar | + | java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar |
| here it will ask your jdownloader account. | | here it will ask your jdownloader account. |
| {{Note box| at my first start, the former instance was not closed properly , I found these warnings when I launched JD2 the second time | | {{Note box| at my first start, the former instance was not closed properly , I found these warnings when I launched JD2 the second time |
Line 89: |
Line 89: |
| sleep 5 | | sleep 5 |
| PID=$(cat $PIDFILE) | | PID=$(cat $PIDFILE) |
− | if pgrep -u $RUNAS -f $NAME > /dev/null | + | if pgrep -u $RUNAS -f "$SCRIPT" > /dev/null |
| then | | then |
| echo "$NAME is now running, the PID is $PID" | | echo "$NAME is now running, the PID is $PID" |
Line 146: |
Line 146: |
| and set the time when we want it starts | | and set the time when we want it starts |
| chkconfig --add jdownloader | | chkconfig --add jdownloader |
− | ln -s /etc/rc.d/init.d/e-smith-service S90jdownloader | + | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S90jdownloader |
| + | signal-event remoteaccess-update |
| | | |
| ====Retrieve the downloads==== | | ====Retrieve the downloads==== |
Line 219: |
Line 220: |
| ===Debug=== | | ===Debug=== |
| launch manually in your terminal the command below and see what is wrong. | | launch manually in your terminal the command below and see what is wrong. |
− | java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar | + | su -s /bin/sh jdownloader -c 'java -Djava.awt.headless=true -jar /usr/share/JD2/JDownloader.jar' |
| [[Category:Howto]] | | [[Category:Howto]] |