forked from imixs/imixs-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wildfly_start.sh
23 lines (21 loc) · 1.15 KB
/
wildfly_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# = = = = = = = = = Starting Wildfly container = = = = = = = = = = = = = = = = = = = = #
# #
# Usage to launch in debug mode #
# ... -e DEBUG=true #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# disable admin user
#if [ ! -f /opt/wildfly/.wildfly_admin_created ]; then
# /opt/wildfly/wildfly_add_admin_user.sh
#fi
# test for starting in debug mode...
if [ "$DEBUG" == "true" ]; then
echo "starting wildfly in debug mode..."
exec /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 --debug *:8787
else
echo "starting wildfly..."
exec /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
fi;