]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/init.d/applejuice
Remove unmounting errors after installation.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / applejuice
CommitLineData
f5679937
MT
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/applejuice
4#
5# Description : Applejuice Init script
6#
7# Authors : Michael Tremer - www.ipfire.org
8#
9# Version : 01.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
97de2cae 17eval $(/usr/local/bin/readhash /var/ipfire/applejuice/settings)
6ef0bff8
MT
18
19
f5679937
MT
20case "${1}" in
21 start)
22 boot_mesg "Starting Applejuice Core..."
23 cd /opt/applejuice
24 screen -dmS ajcore /usr/bin/java -Xmx${RAMSIZE} -Djava.library.path=. -jar ajcore.jar
25 evaluate_retval
26 ;;
27
28 stop)
29 boot_mesg "Stopping Applejuice Core..."
30 killproc /usr/bin/java
31 ;;
32
33 restart)
34 ${0} stop
35 sleep 1
36 ${0} start
37 ;;
38
39 status)
40 statusproc /usr/bin/java
41 ;;
42
43 core)
44 screen -x ajcore
45 ;;
46
47 *)
48 echo "Usage: ${0} {start|stop|restart|status|core}"
6ef0bff8 49 exit 1
f5679937 50 ;;
5ac2da9f 51esac
f5679937
MT
52
53# End $rc_base/init.d/applejuice