-
1. Re: How to run WildFly in the background in Linux?
ehugonnet Nov 5, 2014 3:45 AM (in response to shinzey)You have init.d installation scripts in WildFly/bin
For debian based distribution :
sudo wildfly-8.1.0.Final/bin/init.d/wildfly-init-debian.sh
it will create you init script so if you want WildFly to start automaticly you should execute command:
update-rc.d wildfly defaults
after execution of wildfly-init-debian.sh script
-
2. Re: How to run WildFly in the background in Linux?
shinzey Nov 5, 2014 3:53 AM (in response to ehugonnet)Thanks for the tip but I'm not going to run WildFly as a service.
-
3. Re: How to run WildFly in the background in Linux?
ehugonnet Nov 5, 2014 4:05 AM (in response to shinzey)Then you can set the LAUNCH_JBOSS_IN_BACKGROUND environment variable.
It will make your process run in background.
-
4. Re: How to run WildFly in the background in Linux?
dmlloyd Nov 5, 2014 8:47 AM (in response to ehugonnet)Or just use "nohup".
-
5. Re: How to run WildFly in the background in Linux?
shinzey Nov 7, 2014 3:21 AM (in response to dmlloyd)I tried LAUNCH_JBOSS_IN_BACKGROUND and nohup, but neither of them works. The server did seem to run in the background, but as soon as I logged out the SSH session, the server is stopped.
-
6. Re: How to run WildFly in the background in Linux?
rituraj Nov 7, 2014 5:03 AM (in response to shinzey)JBOSS_PIDFILE="path/to/pidfile"
JBOSS_HOME=" wildfly/installation/path"
JBOSS_BASE_DIR="your/project/path/"
LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_HOME/bin/domain.sh > $JBOSS_BASE_DIR/log/jboss-console.log 2>&1 &
-Rituraj