Hello everyone
I want to configure apache-tomcat-6.0.20 to start automatically at system start up.
I'm using Red Hat Enterprise Linux AS release 3 (Taroon).
How can I put it in /etc/init.d/tomcat ?
And after I create /etc/init.d/tomcat I do chkconfig tomcat on and that's all ?
LE:
Hey, I've found this:
http://www.raibledesigns.com/tomcat/boot-howto.html
I'm gonna see if it works, I hope I won't crash anything.
I'm gonna backup the original functions. :P
bb
LE LE:
`Aight, looks like I got it to work.
[root@xxx rc5.d]# /etc/init.d/tomcat stop
Using CATALINA_BASE: /apache-tomcat-6.0.20/
Using CATALINA_HOME: /apache-tomcat-6.0.20/
Using CATALINA_TMPDIR: /apache-tomcat-6.0.20//temp
Using JRE_HOME: /usr/java/default
[root@xxx rc5.d]# /etc/init.d/tomcat start
Using CATALINA_BASE: /apache-tomcat-6.0.20/
Using CATALINA_HOME: /apache-tomcat-6.0.20/
Using CATALINA_TMPDIR: /apache-tomcat-6.0.20//temp
Using JRE_HOME: /usr/java/default
[root@xxx rc5.d]# chkconfig tomcat on
service tomcat does not support chkconfig
[root@xxx rc5.d]#
but... chkconfig does not support tomcat ? Why ? How ? What do I need to do ?
LE: LE: LE:
I don't udnerstand, when it says:
Make a link to it from /etc/rc5.d such as:
cd /etc/rc5.d
sudo ln -s ../init.d/tomcat S71tomcat
it reffers to make a link EXACTLY like in example ? Or I need to make a link for catalina.sh to the /init.d/tomcat S71tomcat ?
atm, I wrote the command exactly as it is:
Make a link to it from /etc/rc5.d such as:
cd /etc/rc5.d
sudo ln -s ../init.d/tomcat S71tomcat
But, I'm not sure if I need to write like that, or not. :P
I don't understand what and why and where should I create the link. And to create a link /init.d/tomcat S71tomcat to what ? To nothing ?
LE: LE: LE: LE:
[root@xxx rc5.d]# /etc/init.d/tomcat status
Using CATALINA_BASE: /apache-tomcat-6.0.20/
Using CATALINA_HOME: /apache-tomcat-6.0.20/
Using CATALINA_TMPDIR: /apache-tomcat-6.0.20//temp
Using JRE_HOME: /usr/java/default
Usage: catalina.sh ( commands ... )
commands:
debug Start Catalina in a debugger
debug -security Debug Catalina with a security manager
jpda start Start Catalina under JPDA debugger
run Start Catalina in the current window
run -security Start in the current window with security manager
start Start Catalina in a separate window
start -security Start in a separate window with security manager
stop Stop Catalina
stop -force Stop Catalina (followed by kill -KILL)
version What version of tomcat are you running?
[root@xxx rc5.d]#
[root@xxx rc5.d]#
Why dosen't it recognize the status of tomcat ? What else do I need to do ?