• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

Starting Tomcat then closing the shell.

Ranch Hand
Posts: 638
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple question but I cant seem to find the answer on Google. I am starting tomcat on a linux box using catalina.bat jpda run this is great for development.
But now I need to start tomcat, and close the shell I use.

Uisng catalina.bat jpda run if I close the shell it stops the tomcat instance.

Would I be right in thinking I should be using catalina.bat jpda start.

Thanks for any help.
Saloon Keeper
Posts: 22784
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a couple of problems with that statement. First, "jpda" is a debugging option, so you would only use it while testing with a remote debugger.

More importantly, though, you can't use a ".bat" file to run scripts in Linux. Tomcat uses ".sh" files for that.

I don't think any of the script options will do what you want, though. You want to run Tomcat as a dæmon. These days that means you'd usually use the OS systemd resource management subsystem to start and stop Tomcat.

Unfortunately, the systemd file doesn't come with Tomcat, but here's a typical implementation:

    Bookmark Topic Watch Topic
  • New Topic