Added net-p2p section

This commit is contained in:
Torsten Kurbad
2012-11-14 15:06:41 +01:00
parent 46e55e6027
commit 890c097eb5
3 changed files with 45 additions and 0 deletions
@@ -0,0 +1,20 @@
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting jDownloader web interface"
[ -x "/usr/bin/Xvfb" ] && /usr/bin/Xvfb :100 -ac >/dev/null 2>&1 &
cd "${JD_HOME}"
DISPLAY=":100.0" /usr/bin/java -Xmx768m -jar JDownloader.jar >/dev/null 2>&1 &
eend $?
}
stop() {
ebegin "Stopping jDownloader"
killall Xvfb
sleep 1
eend $?
}