Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: inanepolo on March 03, 2011, 09:01:39 PM

Title: how to start up tomcat on boot??
Post by: inanepolo on March 03, 2011, 09:01:39 PM
I copyed tomcat6 to /mnt/sda1/tce/optional/tomcat6/
In Terminal,i can start tomcat use startup.sh(tc:staff)
but, I can't startup in /opt/bootlocal.sh(root:staff)
 /mnt/sda1/tce/optional/tomcat6/bin/startup.sh

WHY??
Title: Re: how to start up tomcat on boot??
Post by: tinypoodle on March 03, 2011, 10:11:50 PM
Copied what exactly and from where?

Generally speaking, IMHO it seems like not to be a good idea to place anything not directly related to extensions and the tools shipped to manage those into /tce/optional
Title: Re: how to start up tomcat on boot??
Post by: inanepolo on March 03, 2011, 10:38:29 PM
I copyed tomcat6 to /mnt/sda1/tomcat/
In Terminal,i can start tomcat use startup.sh(root:staff)
but, I can't startup in /opt/bootlocal.sh(root:staff)
 /mnt/sda1/tomcat/bin/startup.sh
Title: Re: how to start up tomcat on boot??
Post by: gutmensch on March 04, 2011, 03:36:44 AM
it's possible that the startup scripts of tomcat aren't running when called absolutely from anywhere. another thing are environment variables, be sure to set export CATALINA_HOME=/mnt/sda1/tce/optional/tomcat6 in bootlocal.sh and JAVA_HOME to your java home dir. if everything fails then cd in bootlocal.sh to your tomcat home dir first and start startup.sh from there.
Title: Re: how to start up tomcat on boot??
Post by: inanepolo on March 08, 2011, 05:54:05 AM
haha.it's OK.
I set export CATALINA_HOME=/mnt/sda1/tce/optional/tomcat6 in bootlocal.sh and JAVA_HOME to my java home dir.