Files
bpfire/src/initscripts/init.d/applejuice
ms f5679937b8 Amavisd-new und PHP aktualisiert.
Neues Startscript fuer den Applejuice.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@865 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-31 12:09:23 +00:00

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