summaryrefslogtreecommitdiffstats
path: root/network/wildfly/rc.wildfly
diff options
context:
space:
mode:
Diffstat (limited to 'network/wildfly/rc.wildfly')
-rw-r--r--network/wildfly/rc.wildfly15
1 files changed, 10 insertions, 5 deletions
diff --git a/network/wildfly/rc.wildfly b/network/wildfly/rc.wildfly
index 4ca3936bb6..4c13f4e2fe 100644
--- a/network/wildfly/rc.wildfly
+++ b/network/wildfly/rc.wildfly
@@ -2,7 +2,7 @@
# Start/stop/restart wildfly.
-# Copyright 2017 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
+# Copyright 2023 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -36,20 +36,22 @@ export LAUNCH_WILDFLY_IN_BACKGROUND=yes
# define the script to use to start standalone wildfly
WILDFLY_START_STANDALONE=${WILDFLY_START_STANDALONE:-"$WILDFLY_HOME/bin/standalone.sh "}
+WILDFLY_START_DOMAIN=${WILDFLY_START_DOMAIN:-"$WILDFLY_HOME/bin/domain.sh "}
# define the script to use to shutdown wildfly
# change host and port as need
WILDFLY_STOP_STANDALONE=${WILDFLY_STOP_STANDALONE:-"$WILDFLY_HOME/bin/jboss-cli.sh --connect controller=127.0.0.1:9990 command=:shutdown"}
+WILDFLY_STOP_DOMAIN=${WILDFLY_STOP_DOMAIN:-"$WILDFLY_HOME/bin/jboss-cli.sh --connect controller=127.0.0.1:9990 command=/host=primary:shutdown"}
# define log file
-WILDFLY_CONSOLE="/var/log/wildfly/wildfly.log"
-WILDFLY_DOMAIN_CONSOLE="/var/log/wildfly/wildfly_domain.log"
+WILDFLY_CONSOLE="/var/log/wildfly/standalone/console.log"
+WILDFLY_DOMAIN_CONSOLE="/var/log/wildfly/domain/console.log"
if [ -n "$WILDFLY_CONSOLE" -a ! -d "$WILDFLY_CONSOLE" ]; then
# ensure the file exists
touch $WILDFLY_CONSOLE
if [ "$WILDFLYUS" != "RUNASIS" ]; then
- chown -R $WILDFLYUS.$WILDFLYUS $WILDFLY_CONSOLE
+ chown -R $WILDFLYUS:$WILDFLYUS $WILDFLY_CONSOLE
fi
fi
@@ -66,7 +68,7 @@ if [ -n "$WILDFLY_DOMAIN_CONSOLE" -a ! -d "$WILDFLY_DOMAIN_CONSOLE" ]; then
# ensure the file exists
touch $WILDFLY_DOMAIN_CONSOLE
if [ "$WILDFLYUS" != "RUNASIS" ]; then
- chown -R $WILDFLYUS.$WILDFLYUS $WILDFLY_DOMAIN_CONSOLE
+ chown -R $WILDFLYUS:$WILDFLYUS $WILDFLY_DOMAIN_CONSOLE
fi
fi
@@ -82,6 +84,9 @@ WILDFLY_DOMAIN_CONSOLE=${WILDFLY_DOMAIN_CONSOLE:-"/dev/null"}
CMD_START_STANDALONE="cd $WILDFLY_HOME/bin; $WILDFLY_START_STANDALONE"
CMD_STOP_STANDALONE="cd $WILDFLY_HOME/bin; $WILDFLY_STOP_STANDALONE"
+CMD_START_DOMAIN="cd $WILDFLY_HOME/bin; $WILDFLY_START_DOMAIN"
+CMD_STOP_DOMAIN="cd $WILDFLY_HOME/bin; $WILDFLY_STOP_DOMAIN"
+
if [ "$WILDFLYUS" = "RUNASIS" ]; then
SUBIT=""
else