Reputation: 161
I found the below difference:
catalina.sh run ---> Starting tomcat in foreground.
startup.sh ---> Starting tomcat in background while writing response in log file.
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
Reputation: 20882
If you read the comments in these scripts, you'll see what they are supposed to do.
catalina.sh
- does everythingstartup.sh
- calls catalina.sh start
tomcat8.sh
- doesn't existYou 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