After installation, to start and stop the application at start-up and shutdown on Linux/JBoss, you must do the following:
-
Create a file under [APP_HOME]/init.d called infoream.
In this file specify the following text, replacing <app-home> with the location of your EAM installation, and setting the user value to the Linux user that is running the EAM application.
[Unit]
Description=HxGN EAM
After=network.target
[Service]
Type=forking
User=<Linux user that is running the EAM app>
ExecStart=<app-home>/app.sh start
ExecStop=<app-home>/app.sh stop
[Install]
WantedBy=multi-user.target -
As root, copy the infoream script to /etc/systemd/system/infoream.service.
-
As root, run systemctl daemon-reload.
-
As root, run systemctl enable infoream.service.
The HxGN EAM application and HTTP server then begins at start-up and stops and shutdown.
Although the processes are running you will want to verify that a similar line as the following appears in the boot.log before attempting to login to the application:
WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final) started in 122313ms