You have init.d installation scripts in WildFly/bin
For debian based distribution :
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
Thanks for the tip but I'm not going to run WildFly as a service.
Then you can set the LAUNCH_JBOSS_IN_BACKGROUND environment variable.
It will make your process run in background.
Or just use "nohup".
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.
LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_HOME/bin/domain.sh > $JBOSS_BASE_DIR/log/jboss-console.log 2>&1 &