]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/init.d/applejuice
GeƤndert:
[people/teissler/ipfire-2.x.git] / src / init.d / applejuice
index 02314e5b96dcb0e0286f9c1d364d57e43154e9d1..aff9e5d1fc3d8d335e96be367c0bc97eb6657410 100644 (file)
@@ -6,7 +6,6 @@ JAVA=/usr/bin/java
 
 case "$1" in
   start)
-       chown -R applejuice.applejuice $HOME
        cd $HOME
        screen -dmS ajcore $JAVA -Xmx${RAMSIZE}m -Djava.library.path=. -jar ajcore.jar
        echo -e "Applejuice is running!"; logger -t ipfire "Applejuice started!"
@@ -24,6 +23,10 @@ case "$1" in
                exit 1
        fi
        ;;
+  restart)
+       $0 stop
+       $0 start
+       ;;
   *)
-       echo -e "Usage: $0 (start|stop|status)"
+       echo -e "Usage: $0 (start|stop|restart|status)"
 esac
\ No newline at end of file