Friday, May 3, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 21117  / 1 Year ago, sat, december 17, 2022, 3:36:10

Where is tomcat7's CATALINA_HOME in Debian/Ubuntu, and more importantly how did you find it?



I'm OK with Debian rearranging default software installations, but we must be able to find out where basic resources have been moved. Is there any easy-to-find README or config file in the tomcat7 installation that has this vital info?


More From » configuration

 Answers
2

It is under /usr/share/tomcat7/.


One way to find the location is to look into the service startup script /etc/init.d/tomcat7. You will find these lines in it:


NAME=tomcat7
...
CATALINA_HOME=/usr/share/$NAME



Edit:


In Ubuntu 20/Tomcat 9, it is under /usr/share/tomcat9/.


You can find the location in the systemd service file /usr/lib/systemd/system/tomcat9.service:


Environment="CATALINA_HOME=/usr/share/tomcat9"

[#28649] Sunday, December 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
warrdel

Total Points: 356
Total Questions: 103
Total Answers: 118

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
;