tkurbad-overlay/net-p2p/jdownloader/files/jdownloader.initd

21 lines
349 B
Plaintext
Raw Normal View History

2012-11-14 15:06:41 +01:00
#!/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 $?
}