I needed to set up an Ubuntu server based Tomcat server and I followed this well written post. Everything works great. Ran into an odd behavior though; I needed to stop the Tomcat server, so I used the command:
sudo /opt/tomcat/bin/shutdown.sh
However, in about 10 seconds, Tomcat automatically restarted. How is that happening? Does the following command:
sudo systemctl enable tomcat
automatically start the Tomcat service, if its status is periodically checked and found to be stopped?