updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / serviio / serviio-console.sh
blob52a12cef6a2145168a28734fba7ea6ae102da240
1 #!/bin/sh
3 if [ $UID -eq 0 ]
4 then
5 SERVIIO_CONSOLE_HOME="/usr/share/java/serviio"
7 CP="$SERVIIO_CONSOLE_HOME/lib/serviio-client.jar:$SERVIIO_CONSOLE_HOME/lib/serviio.jar:$SERVIIO_CONSOLE_HOME/lib/log4j.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-api.jar:$SERVIIO_CONSOLE_HOME/lib/slf4j-log4j12.jar:$SERVIIO_CONSOLE_HOME/lib/jul-to-slf4j.jar:$SERVIIO_CONSOLE_HOME/lib/org.restlet.jar:$SERVIIO_CONSOLE_HOME/lib/org.restlet.ext.xstream.jar:$SERVIIO_CONSOLE_HOME/lib/xstream.jar:$SERVIIO_CONSOLE_HOME/config"
9 JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"
11 java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.console.ServiioConsole "$@"
12 else
13 echo "Must be run as root."