Install JBoss as daemon and Startup Service on Linux
转载自: http://www.opencrx.org/opencrx/1.7/JBoss-4/html/c382.htmThis section (provided by Seah Hong Yee) is devoted to the automatic start up of jboss services during the startup phase of a server. It also simplifies manual jboss startup with the use a of System V init script. The following configuration has been tested on Mandrake Linux 10.1 and SuSe Linux Enterprise Server 9. Based on the particular distribution at hand there might be some minor differences in init scripts and configuration, but the following guide should work with RHEL, CentOS, WhiteBox and Fedora.
In the directory $JBOSS_HOME/bin there should be two init scripts:
* jboss_init_redhat.sh
* jboss_init_suse.sh
If you are using Mandrake/Mandriva, RHEL, CentOS, WhiteBox or Fedora:
1) Copy the jboss_init_redhat.sh script into /etc/init.d and rename it to jboss.
2) Edit the script and adapt the following parameters: JBOSS_HOME and JAVAPATH
3) Although not strictly necessary, you might want to include an entry like:
Example 7-1. Declare location of jdk
export PATH=/usr/java/jdk1.5.0_18/bin
(/usr/java/jdk1.5.0_18/ being your jdk path, adapt it to your environment)
<div class="quote_title">引用
页:
[1]