-
1. Re: Jboss auto startup with Centos5.4 OS
peterj Apr 16, 2010 11:28 AM (in response to elayaraja.s)I would use the script jboss_init_redhat.sh found in the bin directory of JBoss AS. Change the settings at the start of the file as approriate for your system and place the file into /etc/init.d.
I also add these lines to that file:
# chkconfig: 345 90 10
# description: Runs the JBoss Application Server
# processname: jbossThen I use the chkconfig tool to set the run level.
(At least, that is what I do for Fedora, hopefully that works for CentOS also!)
-
2. Re: Jboss auto startup with Centos5.4 OS
elayaraja.s Apr 19, 2010 8:47 AM (in response to peterj)I adusted the jboss and java path in jboss_init_redhat.sh
I renamed jboss_init_redhat.sh as jboss and i copied jboss to the following folder
- sudo chown root:root /etc/init.d/jboss
- sudo chmod ug+x /etc/init.d/jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc3.d/S84jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc4.d/S84jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc5.d/S84jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc6.d/K15jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc0.d/K15jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc1.d/K15jboss
- ln -s /etc/rc.d/init.d/jboss /etc/rc2.d/K15jboss
and i done reboot my server. But jboss is not yet started...
1) *****Please find the attached jboss configuration file*************
Looking for jboss server should start automatically when the server is up with root user not with jboss user
2) $useradd -d /usr/lib/jboss/jboss-4.2.3.GA -s /bin/sh jboss
Creating mailbox file: File exists
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.3) $chkconfig --add jboss
$service jboss does not support chkconfig
4) $/etc/init.d/jboss start
output:
JBOSS_CMD_START = cd /usr/lib/jboss/jboss-4.2.3.GA/bin; /usr/lib/jboss/jboss-4.2.3.GA/bin/run.sh -c defaultBut jboss is not started....
-
jboss.zip 1.7 KB
- sudo chown root:root /etc/init.d/jboss