/wildfly-install.sh
| #!/bin/bash | |
| #title :wildfly-install.sh | |
| #description :The script to install Wildfly 10.x | |
| #more :http://sukharevd.net/wildfly-8-installation.html | |
| #author :Dmitriy Sukharev | |
| #date :2016-06-18T02:45-0700 | |
| #usage :/bin/bash wildfly-install.sh | |
| #tested-version1 :10.0.0.CR3 | |
| #tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
| #tested-version2 :10.0.0.Final | |
| #tested-distros2 :Debian 8 | |
| WILDFLY_VERSION=10.0.0.Final | |
| WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION | |
| WILDFLY_ARCHIVE_NAME=$WILDFLY_FILENAME.tar.gz | |
| WILDFLY_DOWNLOAD_ADDRESS=http://download.jboss.org/wildfly/$WILDFLY_VERSION/$WILDFLY_ARCHIVE_NAME | |
| INSTALL_DIR=/opt | |
| WILDFLY_FULL_DIR=$INSTALL_DIR/$WILDFLY_FILENAME | |
| WILDFLY_DIR=$INSTALL_DIR/wildfly | |
| WILDFLY_USER="wildfly" | |
| WILDFLY_SERVICE="wildfly" | |
| WILDFLY_MODE="standalone" | |
| WILDFLY_STARTUP_TIMEOUT=240 | |
| WILDFLY_SHUTDOWN_TIMEOUT=30 | |
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root." | |
| exit 1 | |
| fi | |
| echo "Downloading: $WILDFLY_DOWNLOAD_ADDRESS..." | |
| [ -e "$WILDFLY_ARCHIVE_NAME" ] && echo 'Wildfly archive already exists.' | |
| if [ ! -e "$WILDFLY_ARCHIVE_NAME" ]; then | |
| wget -q $WILDFLY_DOWNLOAD_ADDRESS | |
| if [ $? -ne 0 ]; then | |
| echo "Not possible to download Wildfly." | |
| exit 1 | |
| fi | |
| fi | |
| echo "Cleaning up..." | |
| rm -f "$WILDFLY_DIR" | |
| rm -rf "$WILDFLY_FULL_DIR" | |
| rm -rf "/var/run/$WILDFLY_SERVICE/" | |
| rm -f "/etc/init.d/$WILDFLY_SERVICE" | |
| echo "Installation..." | |
| mkdir $WILDFLY_FULL_DIR | |
| tar -xzf $WILDFLY_ARCHIVE_NAME -C $INSTALL_DIR | |
| ln -s $WILDFLY_FULL_DIR/ $WILDFLY_DIR | |
| useradd -s /sbin/nologin $WILDFLY_USER | |
| chown -R $WILDFLY_USER:$WILDFLY_USER $WILDFLY_DIR | |
| chown -R $WILDFLY_USER:$WILDFLY_USER $WILDFLY_DIR/ | |
| #mkdir -p /var/log/$WILDFLY_SERVICE | |
| echo "Registrating Wildfly as service..." | |
| # if should use systemd | |
| if [ -x /bin/systemctl ]; then | |
| # Script from $WILDFLY_DIR/docs/contrib/scripts/systemd/launch.sh didn't work for me | |
| cat > $WILDFLY_DIR/bin/launch.sh << "EOF" | |
| #!/bin/sh | |
| if [ "x$WILDFLY_HOME" = "x" ]; then | |
| WILDFLY_HOME="/opt/wildfly" | |
| fi | |
| if [ "x$1" = "xdomain" ]; then | |
| echo 'Starting Wildfly in domain mode.' | |
| $WILDFLY_HOME/bin/domain.sh -c $2 -b $3 | |
| #>> /var/log/$WILDFLY_SERVICE/server-`date +%Y-%m-%d`.log | |
| else | |
| echo 'Starting Wildfly in standalone mode.' | |
| $WILDFLY_HOME/bin/standalone.sh -c $2 -b $3 | |
| #>> /var/log/$WILDFLY_SERVICE/server-`date +%Y-%m-%d`.log | |
| fi | |
| EOF | |
| # $WILDFLY_HOME is not visible here | |
| sed -i -e 's,WILDFLY_HOME=.*,WILDFLY_HOME='$WILDFLY_DIR',g' $WILDFLY_DIR/bin/launch.sh | |
| #sed -i -e 's,$WILDFLY_SERVICE,'$WILDFLY_SERVICE',g' $WILDFLY_DIR/bin/launch.sh | |
| chmod +x $WILDFLY_DIR/bin/launch.sh | |
| cp $WILDFLY_DIR/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/$WILDFLY_SERVICE.service | |
| WILDFLY_SERVICE_CONF=/etc/default/$WILDFLY_SERVICE | |
| # To install multiple instances of Wildfly replace all hardcoding in systemd file | |
| sed -i -e 's,EnvironmentFile=.*,EnvironmentFile='$WILDFLY_SERVICE_CONF',g' /etc/systemd/system/$WILDFLY_SERVICE.service | |
| sed -i -e 's,User=.*,User='$WILDFLY_USER',g' /etc/systemd/system/$WILDFLY_SERVICE.service | |
| sed -i -e 's,PIDFile=.*,PIDFile=/var/run/wildfly/'$WILDFLY_SERVICE'.pid,g' /etc/systemd/system/$WILDFLY_SERVICE.service | |
| sed -i -e 's,ExecStart=.*,ExecStart='$WILDFLY_DIR'/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND,g' /etc/systemd/system/$WILDFLY_SERVICE.service | |
| systemctl daemon-reload | |
| #systemctl enable $WILDFLY_SERVICE.service | |
| fi | |
| # if non-systemd Debian-like distribution | |
| if [ ! -x /bin/systemctl -a -r /lib/lsb/init-functions ]; then | |
| cp $WILDFLY_DIR/docs/contrib/scripts/init.d/wildfly-init-debian.sh /etc/init.d/$WILDFLY_SERVICE | |
| sed -i -e 's,NAME=wildfly,NAME='$WILDFLY_SERVICE',g' /etc/init.d/$WILDFLY_SERVICE | |
| WILDFLY_SERVICE_CONF=/etc/default/$WILDFLY_SERVICE | |
| fi | |
| # if non-systemd RHEL-like distribution | |
| if [ ! -x /bin/systemctl -a -r /etc/init.d/functions ]; then | |
| cp $WILDFLY_DIR/docs/contrib/scripts/init.d/wildfly-init-redhat.sh /etc/init.d/$WILDFLY_SERVICE | |
| WILDFLY_SERVICE_CONF=/etc/default/wildfly.conf | |
| chmod 755 /etc/init.d/$WILDFLY_SERVICE | |
| fi | |
| # if neither Debian nor RHEL like distribution | |
| if [ ! -x /bin/systemctl -a ! -r /lib/lsb/init-functions -a ! -r /etc/init.d/functions ]; then | |
| cat > /etc/init.d/$WILDFLY_SERVICE << "EOF" | |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: ${WILDFLY_SERVICE} | |
| # Required-Start: $local_fs $remote_fs $network $syslog | |
| # Required-Stop: $local_fs $remote_fs $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start/Stop ${WILDFLY_FILENAME} | |
| ### END INIT INFO | |
| WILDFLY_USER=${WILDFLY_USER} | |
| WILDFLY_DIR=${WILDFLY_DIR} | |
| case "$1" in | |
| start) | |
| echo "Starting ${WILDFLY_FILENAME}..." | |
| start-stop-daemon --start --background --chuid $WILDFLY_USER --exec $WILDFLY_DIR/bin/standalone.sh | |
| exit $? | |
| ;; | |
| stop) | |
| echo "Stopping ${WILDFLY_FILENAME}..." | |
| start-stop-daemon --start --quiet --background --chuid $WILDFLY_USER --exec $WILDFLY_DIR/bin/jboss-cli.sh -- --connect command=:shutdown | |
| exit $? | |
| ;; | |
| log) | |
| echo "Showing server.log..." | |
| tail -500f $WILDFLY_DIR/standalone/log/server.log | |
| ;; | |
| *) | |
| echo "Usage: /etc/init.d/wildfly {start|stop}" | |
| exit 1 | |
| ;; | |
| esac | |
| exit 0 | |
| EOF | |
| sed -i -e 's,${WILDFLY_USER},'$WILDFLY_USER',g; s,${WILDFLY_FILENAME},'$WILDFLY_FILENAME',g; s,${WILDFLY_SERVICE},'$WILDFLY_SERVICE',g; s,${WILDFLY_DIR},'$WILDFLY_DIR',g' /etc/init.d/$WILDFLY_SERVICE | |
| chmod 755 /etc/init.d/$WILDFLY_SERVICE | |
| fi | |
| if [ ! -z "$WILDFLY_SERVICE_CONF" ]; then | |
| echo "Configuring service..." | |
| echo JBOSS_HOME=\"$WILDFLY_DIR\" > $WILDFLY_SERVICE_CONF | |
| echo JBOSS_USER=$WILDFLY_USER >> $WILDFLY_SERVICE_CONF | |
| echo WILDFLY_HOME=\"$WILDFLY_DIR\" > $WILDFLY_SERVICE_CONF | |
| echo WILDFLY_USER=\"$WILDFLY_USER\" > $WILDFLY_SERVICE_CONF | |
| echo STARTUP_WAIT=$WILDFLY_STARTUP_TIMEOUT >> $WILDFLY_SERVICE_CONF | |
| echo SHUTDOWN_WAIT=$WILDFLY_SHUTDOWN_TIMEOUT >> $WILDFLY_SERVICE_CONF | |
| echo WILDFLY_CONFIG=$WILDFLY_MODE.xml >> $WILDFLY_SERVICE_CONF | |
| echo WILDFLY_MODE=$WILDFLY_MODE >> $WILDFLY_SERVICE_CONF | |
| echo WILDFLY_BIND=0.0.0.0 >> $WILDFLY_SERVICE_CONF | |
| fi | |
| echo "Configuring application server..." | |
| sed -i -e 's,<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000",<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="'$WILDFLY_STARTUP_TIMEOUT'",g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| sed -i -e 's,<inet-address value="${jboss.bind.address:127.0.0.1}"/>,<any-address/>,g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| sed -i -e 's,<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>,<socket-binding name="ajp" port="${jboss.ajp.port:28009}"/>,g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| sed -i -e 's,<socket-binding name="http" port="${jboss.http.port:8080}"/>,<socket-binding name="http" port="${jboss.http.port:28080}"/>,g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| sed -i -e 's,<socket-binding name="https" port="${jboss.https.port:8443}"/>,<socket-binding name="https" port="${jboss.https.port:28443}"/>,g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| sed -i -e 's,<socket-binding name="osgi-http" interface="management" port="8090"/>,<socket-binding name="osgi-http" interface="management" port="28090"/>,g' $WILDFLY_DIR/$WILDFLY_MODE/configuration/$WILDFLY_MODE.xml | |
| [ -x /bin/systemctl ] && systemctl start $WILDFLY_SERVICE || service $WILDFLY_SERVICE start | |
| echo "Done." |
This comment has been minimized.
This comment has been minimized.
thermz
commented
Mar 21, 2014
|
Well done! |
This comment has been minimized.
This comment has been minimized.
wilkinsbrian
commented
Apr 24, 2014
|
This is good, but I had trouble setting up new users. Had to change the nologin for the useradd on wildfly so I could run add-users.sh. |
This comment has been minimized.
This comment has been minimized.
ianellis90
commented
Jun 9, 2014
|
Hey @wilkinsbrian what did you change exactly to get ass-uders.sh to run? I'm having trouble running the service I'm getting the following after trying to run: /etc/init.d/wildfly start Any Ideas? |
This comment has been minimized.
This comment has been minimized.
o6s
commented
Jun 25, 2014
|
Thanks for scripts! |
This comment has been minimized.
This comment has been minimized.
svenkata
commented
Aug 13, 2014
|
Where can I change the bind address ? In case of starting the jboss from command line we used ./standalone.sh -Djboss.bind.address=ip-address |
This comment has been minimized.
This comment has been minimized.
Korrozia
commented
Jan 9, 2015
|
Run this script om CentOS 6.6, everything installed. Thank you! |
This comment has been minimized.
This comment has been minimized.
ManuelB
commented
Jan 17, 2015
|
Worked for me as well on: $ uname -a Good job! |
This comment has been minimized.
This comment has been minimized.
abogatyrev
commented
Jan 17, 2015
|
Дима спасибо за скрипт! Очень помог :) |
This comment has been minimized.
This comment has been minimized.
shriharshmishra
commented
Mar 20, 2015
|
Awesome work! Thanks! |
This comment has been minimized.
This comment has been minimized.
bioinfornatics
commented
Mar 22, 2015
|
to support multiple version of wildfly I use alternatives.
to run it:
|
This comment has been minimized.
This comment has been minimized.
gothicx
commented
Mar 25, 2015
|
The default HTTP port is 28080 :) |
This comment has been minimized.
This comment has been minimized.
kamilkkonieczka
commented
Mar 27, 2015
|
Great :) Thanks a lot |
This comment has been minimized.
This comment has been minimized.
farshad6730
commented
Apr 13, 2015
|
hi please help me error: ho-sadegh:/ # ./wildfly-auto.sh info: ho-sadegh: |
This comment has been minimized.
This comment has been minimized.
dilworks
commented
Apr 24, 2015
|
Neato! Any way you could update it for systemd compatibility? (as in creating the unit files and stuff - I'm going to test future deployments on Debian Jessie, on which systemd is now the default init system) |
This comment has been minimized.
This comment has been minimized.
umitmert
commented
Jul 13, 2015
|
Everything is ok but standalone.sh is not executable as warning. why? |
This comment has been minimized.
This comment has been minimized.
demelvin
commented
Jul 29, 2015
|
Awesome Job man. I did this all manually before. Saved me a lot of time. |
This comment has been minimized.
This comment has been minimized.
itsjimbo
commented
Aug 5, 2015
|
Nice script.. Thanks! Just one small change for me though, no need to change the ports from 8080 to 28080
Change the port offset variable to shift all of the ports by 10 or 100 or 1000
|
This comment has been minimized.
This comment has been minimized.
ptofanelli
commented
Aug 26, 2015
|
Nice! just installed on my raspberry pi 2. How can I make the wildfly service start automatically? Thanks! |
This comment has been minimized.
This comment has been minimized.
lfantinel
commented
Aug 27, 2015
|
Hi Sukharev. I would like suggest two implementations. first, optional parameter to choice wildfly version: if [[ !-z $1 ]]
then
WILDFLY_VERSION=$1
else
WILDFLY_VERSION=9.0.1.Final
fisecond, progress filter to improve download user response progressfilter() {
local flag=false c count cr=$'\r' nl=$'\n'
while IFS='' read -d '' -rn 1 c
do
if $flag
then
printf '%c' "$c"
else
if [[ $c != $cr && $c != $nl ]]
then
count=0
else
((count++))
if ((count > 1))
then
flag=true
fi
fi
fi
done
}
...
wget --progress=bar:force $WILDFLY_DOWNLOAD_ADDRESS 2>&1 | progressfilterHugs. |
This comment has been minimized.
This comment has been minimized.
yghandor
commented
Sep 17, 2015
|
on debian it install every thing but service not started debian :~$ sudo service wildfly start |
This comment has been minimized.
This comment has been minimized.
theider
commented
Oct 14, 2015
|
Nice job! Works great on Ubuntu 14.04. Thank you. |
This comment has been minimized.
This comment has been minimized.
theider
commented
Oct 15, 2015
|
I was able to get Wildfly to auto-start on Ubuntu 14 with: |
This comment has been minimized.
This comment has been minimized.
florianrusch
commented
Oct 17, 2015
|
Problem solved Original Problem If I run the script I became this messages:
If I try to start the service with '/etc/init.d/wildfly start', I became this message:
Could be the problem that the script doesn't work with systemd? |
This comment has been minimized.
This comment has been minimized.
kvandake
commented
Jan 20, 2016
|
How can I start wildfly with standalone-full.xml? |
This comment has been minimized.
This comment has been minimized.
rohitchhetri
commented
Mar 17, 2016
|
It installed properly but I can't get access to web-based console. I even try to run through CLI This is what I get in error |
This comment has been minimized.
This comment has been minimized.
jcuero
commented
Apr 26, 2016
|
Hi, Bug fix tested-version :9.x - 10.0.0.Finaltested-distros :Scientific Linux release 6.7 (Carbon)Starting wildfly: chown: missing operand after /var/run/wildfly' Trychown --help' for more information. Replace the following lines:
For these:
|
This comment has been minimized.
This comment has been minimized.
jlanza
commented
May 3, 2016
•
|
I think you should include another variable just in case you need the full setup: Then you should change the config line to: Then the Please note that in the final Wildfly 10 version there is no Thanks for the great job. |
This comment has been minimized.
This comment has been minimized.
DroidUnknown
commented
Jul 20, 2016
•
|
After installation I am unable to start the server. This is what i am facing.
This happens after I run above command The server log is
|
This comment has been minimized.
This comment has been minimized.
steamidea
commented
Aug 3, 2016
|
Works on WildFly 10 final with CentOS 7 |
This comment has been minimized.
This comment has been minimized.
avajadi
commented
Aug 19, 2016
|
Lines 160 - 161 in the script both overwrite the file pointed to by $WILDFLY_SERVICE_CONF: should be |
This comment has been minimized.
This comment has been minimized.
filipepgoes
commented
Sep 6, 2016
•
|
I solved the problem of the non appearance of the management console by changing the value of JAVA_HOME in /etc/default/wildfly from /usr/lib/jvm/default-java (Ubuntu Cloud Server's pre-installed jre7) to /usr/lib/jvm/jdk1.8.0_102 (jdk8 installed by me). |
This comment has been minimized.
This comment has been minimized.
damgel
commented
Oct 9, 2016
•
|
hey why dont you remove -q flag on wget to display progress?, it might be helpful on slow internet connections.. |
This comment has been minimized.
This comment has been minimized.
talk2gupta
commented
Nov 30, 2016
|
Dear Sir, I am unable to start the server. Pls. help root@ubuntu:~# /etc/init.d/wildfly start
root@ubuntu:~# cat /var/log/wildfly/console.logJBoss Bootstrap Environment JBOSS_HOME: /srv/wildfly JAVA: /usr/lib/jvm/java-8-oracle/bin/java JAVA_OPTS: -server -Xms2048m -Xmx8192m -XX:MetaspaceSize=1024M -XX:MaxMetaspaceSize=2048m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true ========================================================================= Picked up _JAVA_OPTIONS: -Xmx8192m
16:07:54,537 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'MetricCollectionTrigger' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,537 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'ClientInstallationServiceImpl' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,537 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'VariantMetricInformationProducer' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'PushMessageMetricsService' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'GenericVariantServiceImpl' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'JmsClient' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'HealthServiceImpl' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'MessageHolderWithVariantsProducer' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,538 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'MetricsCollector' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'NotificationRouter' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'NotificationDispatcher' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'DeleteOldPushMessageInformationScheduler' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'ServiceDisposalScheduler' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'PushApplicationServiceImpl' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,539 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'TokenLoader' in deployment unit 'deployment "unifiedpush-server-wildfly.war"' are as follows:
16:07:54,541 INFO [org.hibernate.Version] (ServerService Thread Pool -- 65) HHH000412: Hibernate Core {5.0.7.Final} 16:13:00,332 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractControllerService$ModelControllerServiceInitializationBootStepHandler$1@3a41d897 for operation {"operation" => "boottime-controller-initializer-step","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException |
This comment has been minimized.
This comment has been minimized.
egv83
commented
Dec 20, 2016
|
I can't start the service wildfly in centos 6, when I try it show me this message, how I fix it to work |
This comment has been minimized.
This comment has been minimized.
icharge
commented
Dec 24, 2016
|
Did you have a uninstall script ? |
This comment has been minimized.
This comment has been minimized.
daoudabeye
commented
Jan 6, 2017
|
Hi, works well on CentOs 7... |
This comment has been minimized.
This comment has been minimized.
joaopaulosilvasimoes
commented
Jan 12, 2017
|
I'm using Ubutu 16.04 LST Server, but when i put the app inside "deployments" folder and start the service, the service dont start. My app dosen't work, acess denied is the error in log file. I need to create wildfly group? or i need to put wildfly user in super users group? Thanks. |
This comment has been minimized.
This comment has been minimized.
xtecuan
commented
Feb 2, 2017
|
It work correctly in Red Hat Enterprise Linux Server release 7.2 (Maipo) , thanks for the script |
This comment has been minimized.
This comment has been minimized.
avreddy2
commented
Feb 15, 2017
|
I'm able to install the wildfly as a service on RHEL 6.5. However, there is an issue with wildfly service. The wildfly service is stopping immediately after startup with following error message in logs:
Any help you can provide would be greatly appreciated. Thanks |
This comment has been minimized.
This comment has been minimized.
ymartin59
commented
Feb 17, 2017
|
To leave official unzipped archive unmodified on disk, I create a "standalone" server structure out of installation directory with configuration, logs and applications, using startup properties to point to modules/lib at installation location. That way, it is easy to run multiple standalone instances or discard and rebuild an instance with scripts. I recommend use of |
This comment has been minimized.
This comment has been minimized.
jaywax
commented
Mar 1, 2017
|
Works like a charm on Debian 8 and openjdk-8-jdk. |
This comment has been minimized.
This comment has been minimized.
dortegau
commented
Mar 22, 2017
|
At idealista we have created an Ansible role based on this gist: https://github.com/idealista/wildfly-role/ |
This comment has been minimized.
This comment has been minimized.
GuyPaddock
commented
Apr 17, 2017
•
|
Is it me, or are the EDIT: It looks like the |
This comment has been minimized.
This comment has been minimized.
cfbetancurm
commented
Apr 20, 2017
|
Amazing!...wildfky stantalone in 10 seconds, thanks!!! |
This comment has been minimized.
This comment has been minimized.
gabtrr
commented
Apr 26, 2017
|
Very useful. Thanks! |
This comment has been minimized.
This comment has been minimized.
duspenskiy
commented
Jun 26, 2017
|
Author, great work! However, two typos sent me on a wild goose chase. Following two lines need to be corrected in order not to overwrite the service config file:
Change the operator to "append":
This should solve the issue people are having with the "chown: missing operand" error. |
This comment has been minimized.
This comment has been minimized.
diversunny
commented
Jun 29, 2017
|
Works perfectly for Wildfly 10.1 on Raspberry Pi2 with CentOS 7:
Had a lot of fun on this tiny wildlfy machine |
This comment has been minimized.
This comment has been minimized.
ltang007
commented
Jul 14, 2017
|
failed on Fedora 25 with following error, could anyone help? ● wildfly.service - The WildFly Application Server Loaded: loaded (/etc/systemd/system/wildfly.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2017-07-14 10:10:54 HKT; 7min ago Process: 10251 ExecStart=/opt/wildfly/bin/launch.sh $WILDFLYMODE $WILDFLYCONFIG $WILDFLY_BIND (code=exited, status=203/EXEC) Main PID: 10251 (code=exited, status=203/EXEC) Jul 14 10:10:54 ISNTDEVOS systemd[1]: Started The WildFly Application Server. Jul 14 10:10:54 ISNTDEVOS systemd[1]: wildfly.service: Main process exited, code=exited, status=203/EXEC Jul 14 10:10:54 ISNTDEVOS systemd[1]: wildfly.service: Unit entered failed state. Jul 14 10:10:54 ISNTDEVOS systemd[1]: wildfly.service: Failed with result 'exit-code'. |
This comment has been minimized.
This comment has been minimized.
russellhoff
commented
Dec 1, 2017
|
Thank you, I'll test Wildfly 11 on Ubuntu 17.10 64 bits |
This comment has been minimized.
This comment has been minimized.
BastienDurel
commented
Dec 12, 2017
|
The systemd unit misses a line in Or wildfly will start in / |
This comment has been minimized.
This comment has been minimized.
dragosrosculete
commented
Apr 30, 2018
|
Thank you BastienDurel . Adding WorkingDirectory=$WILDFLY_DIR solved a problem I was having with user.dir . |
This comment has been minimized.
This comment has been minimized.
fabmars
commented
Jun 14, 2018
•
|
In this script I saw the line "# Script from $WILDFLY_DIR/docs/contrib/scripts/systemd/launch.sh didn't work for me" Well, I agree it's not out of the box, but to make the official wildfly contrib work, besides what's written in the README you only need to:
|

This comment has been minimized.
aHumanBeing commentedFeb 10, 2014
Hi,
Thanks for this script it works great! Is there one available for uninstalling as well? Or would it be OK to somehow reverse engineer it?