diff -r 1090e2141798 -r 2fdc9cc89502 helpers/sonews --- a/helpers/sonews Wed Jul 01 10:48:22 2009 +0200 +++ b/helpers/sonews Wed Jul 22 14:04:05 2009 +0200 @@ -1,6 +1,7 @@ #!/bin/bash CLASSPATH=/usr/share/java/sonews.jar:\ +/usr/share/java/sonews-helpers.jar:\ /usr/share/java/mysql-connector-java.jar:\ /usr/share/java/glassfish-mail.jar:\ /usr/share/java/postgresql.jar @@ -9,7 +10,7 @@ PIDFILE=/var/run/sonews.pid ARGS="-mlgw -c /etc/sonews/sonews.conf -feed" -MAINCLASS=org.sonews.daemon.Main +MAINCLASS=org.sonews.Main JAVA=java case "$1" in @@ -31,12 +32,18 @@ done echo "done." ;; + restart) + $0 stop && $0 start + ;; setup) $JAVA -classpath $CLASSPATH org.sonews.util.DatabaseSetup ;; purge) $JAVA -classpath $CLASSPATH org.sonews.util.Purger ;; + version) + $JAVA -classpath $CLASSPATH $MAINCLASS -version + ;; *) echo "Usage: sonews [start|stop|restart|setup|purge]" esac