bin/sonews-web.sh
author cli
Mon, 12 Sep 2011 22:43:40 +0200
changeset 54 e7c1185ad484
parent 1 6fceb66e1ad7
permissions -rwxr-xr-x
Add debian/sonews.install and modify sonews.conf.sample to place database in /var/news/sonews/.
chris@1
     1
#!/bin/bash
chris@1
     2
SCRIPTROOT=$(dirname $0)
chris@1
     3
CLASSPATH=$SCRIPTROOT/lib/jchart2d.jar:\
chris@1
     4
$SCRIPTROOT/lib/sonews.jar:\
chris@1
     5
$SCRIPTROOT/lib/servlet-api-2.5.jar
chris@1
     6
ARG0=org.sonews.web.SonewsServlet@sonews
chris@1
     7
ARG1=org.sonews.web.SonewsConfigServlet@sonews/config
chris@1
     8
ARG2=org.sonews.web.SonewsPeerServlet@sonews/peer
chris@1
     9
ARG3=org.sonews.web.SonewsChartServlet@sonews/chart
chris@1
    10
java -cp $CLASSPATH org.sonews.kitten.Main -s $ARG0 -s $ARG1 -s $ARG2 -s $ARG3