View Single Post
  #56  
Old 06.11.2014, 12:37
akhlan akhlan is offline
DSL User
 
Join Date: Nov 2014
Location: France
Posts: 37
Default

Hi all,

I would like use JDownloader to replace Pyload but I don't know why I can't...

Code:
RedAkStation> pwd
/usr/local/etc/rc.d

RedAkStation> ls -ltr
-rwxr-xr-x    1 root     root           523 Nov  6 11:12 S99jdownloader.sh

RedAkStation> vi S99jdownloader.sh
#!/bin/sh
#
# Startup script for jdownloader2
#
# Stop myself if running
PIDFILE=/var/run/S99jdownloader.pid
#
start() {
sleep 1
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &
# write pidfile
echo $! > $PIDFILE
}
#
stop() {
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}`
# remove pidfile
rm -f $PIDFILE
}
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
# End

RedAkStation> cd /volume1/@appstore/jdownloader
RedAkStation> ls -ltr
-rwxrwxrwx    1 akhlan   users        39624 Nov  4 18:27 license_german.txt
-rwxrwxrwx    1 akhlan   users        32034 Nov  4 18:27 license.txt
-rwxrwxrwx    1 akhlan   users          318 Nov  4 18:27 build.json
-rwxrwxrwx    1 akhlan   users      2596241 Nov  4 18:27 JDownloader.jar
-rwxrwxrwx    1 akhlan   users      4872100 Nov  4 18:27 Core.jar
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 java
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 extensions
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 licenses
drwxrwxrwx    5 akhlan   users        20480 Nov  4 18:27 cfg
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:27 libs
drwxrwxrwx    3 akhlan   users         4096 Nov  4 18:27 tools
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:27 tmp
drwxrwxrwx   13 akhlan   users         4096 Nov  4 18:28 logs
drwxrwxrwx    3 akhlan   users         4096 Nov  4 18:28 update
drwxrwxrwx    4 akhlan   users         4096 Nov  4 18:28 jd
drwxrwxrwx    4 akhlan   users         4096 Nov  4 18:28 themes
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:29 translations

RedAkStation> ps | grep -i JDownloader
23241 root      3816 S    grep -i JDownloader
I have tree remarks...
- I have make a chmod +x on my S99jdownloader.sh, may be it's an error...
- I don't know how check the permission of my folder "/volume1/@appstore/jdownloader" because in FilleZilla or in WinSCP, folders start with @ don't appear...
- In "Java Manager", it's normal you don't said to install Java ?

Please, who can help me ?

Last edited by akhlan; 06.11.2014 at 12:42.
Reply With Quote