View Single Post
  #162  
Old 04.03.2015, 09:25
zoddel zoddel is offline
Super Loader
 
Join Date: Mar 2015
Posts: 25
Default

Danke Jiaz für die schnelle Antwort.
Kannst du mir sagen was ich am Script ändern muss?
Bzw was für Zeilen ich anpassen / hinzufügen muss?
Wenn ich alles lauffähig habe werde ich das fertige Script hier mal posten.
Haben ja noch ein paar Andere das Problem mit dem automatischen Starten auf der NAS.

Linux ist für mich noch eine neue Welt =) taste mich gerade ran.

Aktuell schaut das Script wie folgt aus:
Code:
#!/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
Reply With Quote