mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
Neues Startscript fuer den Applejuice. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@865 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
54 lines
947 B
Bash
54 lines
947 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/applejuice
|
|
#
|
|
# Description : Applejuice Init script
|
|
#
|
|
# Authors : Michael Tremer - www.ipfire.org
|
|
#
|
|
# Version : 01.00
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
eval $(/usr/local/bin/readhash /var/ipfire/applejuice/settings)
|
|
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting Applejuice Core..."
|
|
cd /opt/applejuice
|
|
screen -dmS ajcore /usr/bin/java -Xmx${RAMSIZE} -Djava.library.path=. -jar ajcore.jar
|
|
evaluate_retval
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping Applejuice Core..."
|
|
killproc /usr/bin/java
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/bin/java
|
|
;;
|
|
|
|
core)
|
|
screen -x ajcore
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start|stop|restart|status|core}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/applejuice
|