LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   tomcat startup on boot (http://www.linuxquestions.org/questions/linux-software-2/tomcat-startup-on-boot-282984/)

malbery 01-27-2005 03:30 PM

tomcat startup on boot
 
Hi,

I am using Debian and have a startup script setup, which if I add echo commands, I can see that it runs. The problem is that tomcat does not startup when I add it's startup script. Does anyone have this working, or know what I am doing wrong?

Cheers
malbery

------------------

$ ls -al /etc/rc*.d/*local
lrwxrwxrwx 1 root root 20 2004-10-19 16:58 /etc/rc2.d/S99local -> /etc/init.d/rc.local
lrwxrwxrwx 1 root root 20 2004-10-19 16:58 /etc/rc3.d/S99local -> /etc/init.d/rc.local
lrwxrwxrwx 1 root root 20 2004-10-19 16:58 /etc/rc4.d/S99local -> /etc/init.d/rc.local
lrwxrwxrwx 1 root root 20 2004-10-19 16:58 /etc/rc5.d/S99local -> /etc/init.d/rc.local
lrwxrwxrwx 1 root root 20 2004-10-19 16:58 /etc/rc6.d/S99local -> /etc/init.d/rc.local

$ ls -al /etc/init.d/rc.local
-rwxr-xr-x 1 root root 135 2005-01-23 21:17 /etc/init.d/rc.local

$ cat /etc/init.d/rc.local
#!/bin/sh
/usr/share/jakarta-tomcat-5.0.29/bin/startup.sh

malbery 01-27-2005 04:01 PM

Ooops. My mistake. I was missing environment variables (like JAVA_HOME). :tisk:

Sepero 01-27-2005 04:03 PM

Re: tomcat startup on boot
 
What does "ls -al /usr/share/jakarta-tomcat-5.0.29/bin/startup.sh" give you? (wrong permissions?)

malbery 01-27-2005 05:10 PM

Sorry Sepero, stupid of me. This works script works:

$ cat /etc/init.d/rc.local
#!/bin/sh
PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.2_05/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_05
export PATH
export JAVA_HOME
/usr/share/jakarta-tomcat-5.0.29/bin/startup.sh


All times are GMT -5. The time now is 11:38 AM.