Some work on XDAEMON command.
4 CLASSPATH=$NEWSROOT/lib/sonews.jar:\
5 $NEWSROOT/lib/sonews-helpers.jar:\
6 $NEWSROOT/lib/mysql-connector-java.jar:\
7 $NEWSROOT/lib/glassfish-mail.jar:\
8 $NEWSROOT/lib/postgresql.jar
10 LOGFILE=/var/log/sonews.log
11 PIDFILE=/var/pid/sonews.pid
14 MAINCLASS=org.sonews.Main
15 JAVA=$JAVA_HOME/bin/java
19 echo "Starting sonews Newsserver..."
20 $JAVA -classpath $CLASSPATH $MAINCLASS $ARGS &> $LOGFILE &
24 echo "Stopping sonews Newsserver..."
29 $JAVA -classpath $CLASSPATH org.sonews.util.DatabaseSetup
32 $JAVA -classpath $CLASSPATH org.sonews.util.Purger
36 echo "Usage: sonews [start|stop|setup|purge]"