4.9. Service Configuration
4.9.1. Configure JBoss EAP 6 as a Service in Red Hat Enterprise Linux (RPM Method)
Prerequisites
- Install JBoss EAP 6 using the RPM Method (Graphical or Text Based).
- Administrator privileges on the server are required.
Summary
Use the following procedure to install JBoss EAP 6 as a service on Red Hat Enterprise Linux when the installation has been done using the RHN (RPM) method.
Procedure 4.16. Configure JBoss EAP 6 as a Service using the RPM Method in Red Hat Enterprise Linux
Install JBoss EAP 6
Install JBoss EAP 6 via the RPM method using one of the steps listed in the prerequisite sections listed above.Enable the service
The RPM install method for JBoss EAP 6 installs the requisite service files in their correct locations. All you need to do to set it up as service is issue the following command:chkconfig jbossas on
To set it up as a service in domain mode, issue the following command:chkconfig jbossas-domain on
Result
JBoss EAP 6 starts automatically when the Red Hat Enterprise Linux reaches its default run-level, and stops automatically when the operating system goes through its shutdown routine.