Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # determine location |
---|
4 | # resolve links - $0 may be a softlink |
---|
5 | PRG="$0" |
---|
6 | |
---|
7 | while [ -h "$PRG" ]; do |
---|
8 | ls=`ls -ld "$PRG"` |
---|
9 | link=`expr "$ls" : '.*-> \(.*\)$'` |
---|
10 | if expr "$link" : '/.*' > /dev/null; then |
---|
11 | PRG="$link" |
---|
12 | else |
---|
13 | PRG=`dirname "$PRG"`/"$link" |
---|
14 | fi |
---|
15 | done |
---|
16 | |
---|
17 | # Get standard environment variables |
---|
18 | PRGDIR=`dirname "$PRG"` |
---|
19 | |
---|
20 | JAVA=`which java` |
---|
21 | SERVER_HOME=${PRGDIR}/server |
---|
22 | SERVER_LOG=$SERVER_HOME/standalone/log |
---|
23 | |
---|
24 | [ -n "$JAVA" ] || { echo "No Java Runtime Environment found" && exit 1; } |
---|
25 | |
---|
26 | cd ${PRGDIR} |
---|
27 | |
---|
28 | echo "Start db .." |
---|
29 | nohup $JAVA -cp $SERVER_HOME/modules/com/h2database/h2/main/h2-1.3.161.jar org.h2.tools.Server -baseDir ./data > $SERVER_LOG/h2.out & |
---|
30 | echo " The databse is now starting, check output in $SERVER_LOG/h2.out" |
---|
31 | echo " " |
---|
32 | |
---|
33 | sleep 3 |
---|
34 | |
---|
35 | echo "Start Flarmradar Server .." |
---|
36 | nohup /bin/sh $SERVER_HOME/bin/standalone.sh > /dev/null & |
---|
37 | echo " The server is now starting, check output in $SERVER_LOG/server.log" |
---|
38 | echo " " |
---|
Note: See
TracBrowser
for help on using the repository browser.