-
Bug
-
Resolution: Won't Do
-
Major
-
EAP 5.0.1, 4.2.0.GA_CP09, 4.3.0.GA_CP08
-
JBoss EAP, RHEL
-
Documentation (Ref Guide, User Guide, etc.), Release Notes
-
Medium
-
The script jboss_init_redhat.sh has been removed from distribution. Instead, use your own script to customize start-up of the Enterprise Platform.
-
Documented as Known Issue
-
ASSIGNED
We need to document the usage of the JBoss Startup script that we ship.
I'm going to see if we can get JBPAPP-2381 fixed so that step 1 below is not required.
The EAP distribution is shipped with init scripts which can be used to run jboss as a service
1. Add these lines to the top of the $JBOSS_HOME/bin/jboss_init_redhat.sh after the #/bin/bash [1]
- chkconfig: - 85 15
- description: The JBoss Application Server
- processname: jboss
The - means to not start JBoss in any run level by default. To specify the runlevels it should be started in, specify the values with no spaces (2345 would be running in 2,3,4 and 5 runlevels). 85 is the start priority, and 15 is the stop priority.
2. Symlink your edited jboss_init_redhat.sh file to /etc/init.d/. Example command:
ln -s $JBOSS_HOME/bin/jboss_init_redhat.sh /etc/init.d/jboss_init_redhat.sh
3. Register jboss_init_redhat.sh with the chkconfig system by entering the following command:
/sbin/chkconfig --add jboss_init_redhat.sh
4. Enable the jboss service at boot time and have it stop gracefully at shutdown/reboot by entering the following command:
/sbin/chkconfig jboss_init_redhat.sh on
5. To disable the jboss boot-time service enter the following command:
/sbin/chkconfig jboss_init_redhat.sh off