I have Jenkins 2.462.1 LTS installed on Red Hat 8.10 with Apache Tomcat 9.0.95, i want setup Jenkins service to get a rid of manually starting and stopping Jenkins using ./catalina.sh start & stop.
It would be really good, if anyone could share the sample Jenkins service.
Why host on tomcat? This combination is not tested by the Jenkins project.
You could install the jenkins package with your package manager, this will install a service for you (see Linux).
If you really want to use tomcat search for how to setup tomcat as a service, Jenkins is then just an application. You will need to set some env variables so Jenkins finds it’s JENKINS_HOME and you will need to set certain options for java to open some modules when you use java17.