]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/init.d/applejuice
Update:
[ipfire-2.x.git] / src / init.d / applejuice
index 02314e5b96dcb0e0286f9c1d364d57e43154e9d1..cdb0655dceb0d0263b97d1606be09a1f5357abfa 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)"
-esac
\ No newline at end of file
+       echo -e "Usage: $0 (start|stop|restart|status)"
+esac