3 CLASSPATH=/usr/share/java/sonews.jar:\
4 /usr/share/java/mysql-connector-java.jar:\
5 /usr/share/java/glassfish-mail.jar:\
6 /usr/share/java/postgresql.jar
8 LOGFILE=/var/log/sonews.log
9 PIDFILE=/var/run/sonews.pid
10 ARGS="-mlgw -c /etc/sonews/sonews.conf -feed"
12 MAINCLASS=org.sonews.daemon.Main
17 echo "Starting sonews Newsserver..."
18 $JAVA -classpath $CLASSPATH $MAINCLASS $ARGS &> $LOGFILE &
23 echo "Stopping sonews Newsserver..."
26 while [ $STOPRES -le 0 ]
28 kill -15 $PID &> /dev/null
35 $JAVA -classpath $CLASSPATH org.sonews.util.DatabaseSetup
38 $JAVA -classpath $CLASSPATH org.sonews.util.Purger
41 echo "Usage: sonews [start|stop|restart|setup|purge]"