DOYENSYS Knowledge Portal

We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal

Sunday, May 6, 2018

The script can be managed by the init process so that the server starts automatically when the system boots. This also allows the server process to be managed by services like service and chkconfig

Environment :

Red Hat JBoss Operations Network (ON) 3.3

Step 1 :

Copy the script into the /etc/init.d/ directory.

cp serverRoot/bin/ /etc/init.d/

Step 2 :

Edit the /etc/init.d/ script to set the RHQ_SERVER_HOME variable to the JBoss ON server install directory and the RHQ_SERVER_JAVA_HOME variable to the appropriate directory for the JVM.

For example:


Step 3 :

Edit the /etc/init.d/ script, and add the following lines to the top of the file, directly under #!/bin/sh

#chkconfig: 2345 95 20  
#description: JBoss Operations Network Server

The last two numbers in the #chkconfig: 2345 95 20 line specify the start and stop priority, respectively, for the JBoss ON server

Step 4 :

Add the service to the chkconfig service management command, and verify that it was added properly

chkconfig --add
chkconfig --list

Step 5 :

Set the service to run at run level 5

chkconfig --level 5 on

1 comment:

calfre 010 said...

Good information.Thanks for sharing your information.Oracle DBA Training in Hyderabad