How is the LAUNCH_JBOSS_IN_BACKGROUND used by the run.sh script in JBoss EAP
Issue
-
I wanted to start
JBoss EAP 6.xserver in background mode. -
I wanted to start the JBoss process in background while running
run.shand also wanted it to keep on running after closing that session also, so instead of running it withnohupand&I was trying to understand the script if something can be modified inside the script. What I found is, at one place its checking for a conditionif [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]
but I never found the variable LAUNCH_JBOSS_IN_BACKGROUND being defined anywhere, that means every time it will run in foreground.
- Why it is written in that way and what can be modified within the script to run it in background without killing the process after closing the session.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- All versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
