-
Notifications
You must be signed in to change notification settings - Fork 2
/
jboss-pi.sh
executable file
·25 lines (17 loc) · 1.03 KB
/
jboss-pi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ---------------------------------------------------------------------------------------------------------------
# -------------------- Script to start up JBoss on a Raspberry Pi. ----------------------------------------------
# ---------------------------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------
# -------------------- This script is designed to take in 3 parameters. -----------------------------------------
# ---------------------------------------------------------------------------------------------------------------
export JBOSS_EAP_HOME=$1
export IP_ADDRESS=$2
export JBOSS_NODE_NAME=$3
clear
echo 'JBoss EAP home is: '
echo $JBOSS_EAP_HOME
echo 'IP address is: '
echo $IP_ADDRESS
echo 'JBoss node name is: '
echo $JBOSS_NODE_NAME
$JBOSS_EAP_HOME/bin/standalone.sh -c standalone-full-ha.xml -b=$IP_ADDRESS -bmanagement=$IP_ADDRESS -u=230.0.0.4 -Djboss.node.name=$JBOSS_NODE_NAME