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.
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:
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.