Two node WildFly domain installation on Linux - CustomerID
Ubisecure SSO service needs to be stopped at this point if SSO is installed on the same server as CID and SSO is using port 8443.Â
systemctl stop ubilogin-server
First, extract WildFly distribution package to /usr/local/
. The newly created folder /usr/local/wildfly-x.x.x.Final
will henceforth be referred to as $WILDFLY_HOME.Â
cd /usr/local/ tar xzvf ~/customerid/wildfly-x.x.x.Final-linux.tar.gz
Next, create the user wildfly
and make wildfly
the owner of the $WILDFLY_HOME folder:Â Â
useradd -d /usr/local/wildfly-x.x.x.Final -M wildfly chown -R wildfly:wildfly /usr/local/wildfly-x.x.x.Final
Create the file wildfly-service
as a systemd service in /etc/systemd/system/
:
[Unit] Description=WildFly {{ wildfly_version }} Java EE Application Server Wants=network-online.target After=network-online.target [Service] Type=simple User={{ wildfly_user }} Group={{ wildfly_user }} ExecStart={{ wildfly_home }}/bin/domain.sh -b=0.0.0.0 -bmanagement=0.0.0.0 [Install] WantedBy=multi-user.target
Edit {{ wildfly_version }}, {{ wildfly_user }}, {{ wildfly_home }} accordingly with the actual values on your environment.
NOTE that it is possible to add also ExecReload
and ExecStop
definitions in the service file to use jboss-cli
to reload or gracefully shutdown all the nodes within the domain with a single command. By default systemctl stop wildfly
will kill only the service on the node where it is launched.
Load the unit configuration file:
systemctl daemon-reload
You can now start the Ubisecure CustomerID service with the systemctl
command:Â
systemctl start wildfly
Uninstalling WildFly
In case you need to uninstall WildFly as a systemd service, here are the instructions for it:Â
systemctl stop wildfly.service systemctl disable wildfly.service rm -rf /etc/systemd/system/wildfly* rm -rf /lib/systemd/system/wildfly* # optional systemctl daemon-reload systemctl reset-failed # optional rm /etc/default/wildfly userdel wildfly
Then either delete the WildFly installation folder or backup it to a different location.