WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to start up tomcat on boot??  (Read 3430 times)

Offline inanepolo

  • Newbie
  • *
  • Posts: 3
how to start up tomcat on boot??
« 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??
« Last Edit: March 03, 2011, 10:36:58 PM by inanepolo »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: how to start up tomcat on boot??
« Reply #1 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline inanepolo

  • Newbie
  • *
  • Posts: 3
Re: how to start up tomcat on boot??
« Reply #2 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

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: how to start up tomcat on boot??
« Reply #3 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.
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline inanepolo

  • Newbie
  • *
  • Posts: 3
Re: how to start up tomcat on boot??
« Reply #4 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.