LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2005, 02:30 PM   #1
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Rep: Reputation: 15
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
 
Old 01-27-2005, 03:01 PM   #2
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Ooops. My mistake. I was missing environment variables (like JAVA_HOME).
 
Old 01-27-2005, 03:03 PM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Re: tomcat startup on boot

What does "ls -al /usr/share/jakarta-tomcat-5.0.29/bin/startup.sh" give you? (wrong permissions?)
 
Old 01-27-2005, 04:10 PM   #4
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
startup Tomcat 5.5.4 in Fedora 2 treotan Linux - Newbie 1 12-03-2004 09:46 PM
How to set up tomcat 5 to boot at startup ? jorgepinho Linux - Newbie 1 11-15-2004 07:13 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
Tomcat Startup (? is appendage to previous post) ChangeOfPace Linux - Software 7 05-01-2003 06:20 PM
To have 'tomcat' up upon system boot up ... t0dd Linux - Software 1 03-10-2002 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration