Hi I use this Systemd unit file (from https://sorenpoulsen.com/install-tomcat-8-on-ubuntu) on ubuntu, but it's probably fairly generic as the unit file just calls tomcats start and stop scripts directly.
[Unit] Description=Apache Tomcat After=syslog.target network.target [Service] Type=forking Environment=CATALINA_HOME=/usr/local/tomcat ExecStart=/usr/local/tomcat/bin/startup.sh ExecStop=/usr/local/tomcat/bin/shutdown.sh SuccessExitStatus=143 User=tomcat Group=tomcat Umask=027 [Install] WantedBy=multi-user.target >Apologies for dredging this up but I'm having some problems with this. >Any ideas much appreciated.