root/trunk/build/quickstart/linux/startjboss

Revision 2734 (checked in by douglm, 3 years ago)

Comment change

Line 
1 #! /bin/sh
2
3 # Script to start jboss with properties defined
4 # This currently needs to be executed out of the quickstart directory
5 # (via a source)
6
7 BASE_DIR=`pwd`
8
9 JBOSS_VERSION="jboss-5.1.0.GA"
10 JBOSS_CONFIG="default"
11 JBOSS_SERVER_DIR="$BASE_DIR/$JBOSS_VERSION/server/$JBOSS_CONFIG"
12 JBOSS_DATA_DIR="$JBOSS_SERVER_DIR/data"
13
14 # If this is empty only localhost will be available.
15 # With this address anybody can access the consoles if they are not locked down.
16 JBOSS_BIND="-b 0.0.0.0"
17
18 #
19 # Port shifting
20 #
21
22 # standard ports
23 JBOSS_PORTS=
24
25 # standard ports + 100
26 #JBOSS_PORTS="-Djboss.service.binding.set=ports-01"
27
28 # standard ports + 200
29 #JBOSS_PORTS="-Djboss.service.binding.set=ports-02"
30
31 # standard ports + defined value
32 #JBOSS_PORTS="-Dorg.bedework.system.ports.offset=505 -Djboss.service.binding.set=ports-syspar"
33
34 ACTIVEMQ_DIRPREFIX="-Dorg.apache.activemq.default.directory.prefix=$JBOSS_DATA_DIR/"
35
36 LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG"
37
38 BW_DATA_DIR=$JBOSS_DATA_DIR/bedework
39 BW_DATA_DIR_DEF=-Dorg.bedework.data.dir=$BW_DATA_DIR/
40
41 RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $ACTIVEMQ_DIRPREFIX $BW_DATA_DIR_DEF"
42
43 echo $RUN_CMD
44
45 $RUN_CMD
46  
Note: See TracBrowser for help on using the browser.