When using a binary JBoss installation on RHEL, CentOS or Scientific Linux, it may be required to start the services when the system starts itself.
JBoss binary installations already ship with a shell script for Red Hat based systems that does exactly that, but misses some chkconfig
parameters.
In order to add JBoss to system initialization, you have to append these lines right after #!/bin/sh
:
# chkconfig: 345 90 10
# description: Runs the JBoss Application Server
# processname: jboss
It will allow you to use chkconfig --add jboss_init
(or any other initialization script name) to add JBoss to system startup.