On Sat, Nov 26, 2022 at 11:46 AM Greg Wooledge <g...@wooledge.org> wrote: > ... > In systemd.service(5) you'll find a description of the basic types of > services that can be started. The one you want is called "forking". > > Type=forking > > You'll need to read and understand the systemd documentation *and* the > tomcat documentation, and find a combination of the two that can coexist. > This may mean researching this catalina.sh script and looking for options > to make it do what systemd expects. > > More likely it will mean finding a tomcat support mailing list, and asking > the people *there* how they made it start. > > I'd be shocked if there isn't already someone out there with a functioning > systemd unit file to start your version of tomcat properly.
Looking through Tomcat's GitHub, I cannot find a sample systemd unit. Hmm... But there are lots of sample systemd units out there, like https://gist.github.com/drmalex07/e6e99dad070a78d5dab24ff3ae032ed1 . Or more generally, https://www.google.com/search?q=tomcat+systemd+service+file . And you were correct - they are forking. Jeff