Alte Initscripts entfernt...

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@388 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-01-09 00:04:31 +00:00
parent 559d3ad2cf
commit 3b6d00672a
13 changed files with 6 additions and 750 deletions

View File

@@ -0,0 +1,32 @@
#!/bin/bash
HOME=/opt/applejuice
JAVA=/usr/bin/java
. /var/ipfire/applejuice/settings
case "$1" in
start)
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!"
;;
stop)
killall -9 java
echo -e "Applejuice is stopped!"; logger -t ipfire "Applejuice stopped!"
;;
status)
if pidof java > /dev/null ; then
echo -e "Applejuice is running!"
exit 0
else
echo -e "Applejuice is not running!"
exit 1
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo -e "Usage: $0 (start|stop|restart|status)"
esac