Muhammad Abu Bakr
Muhammad Abu Bakr

Reputation: 161

tomcat8.sh vs catalina.sh vs startup.sh

I found the below difference:

I am unable to find the comparison with this command:

It also starts the tomcat service correctly but is there any difference with the other commands?

Upvotes: 8

Views: 9181

Answers (1)

Christopher Schultz
Christopher Schultz

Reputation: 20882

If you read the comments in these scripts, you'll see what they are supposed to do.

  • catalina.sh - does everything
  • startup.sh - calls catalina.sh start
  • tomcat8.sh - doesn't exist

You can start Tomcat in the foreground like this:

$ $CATALINA_HOME/bin/catalina.sh run

Or you can start it in the background like this:

$ $CATALINA_HOME/bin/catalina.sh start

There are other verbs that catalina.sh accepts. You can find those by running:

$ $CATALINA_BASE/bin/catalina.sh -h

Upvotes: 9

Related Questions