tomcat: Don't use forking in tomcat.service #140
Loading…
Reference in New Issue
No description provided.
Delete Branch "mtrossevin/ansible-roles:tomcat-service-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Having
ExecStart=[…]/catalina.sh run
andType=simple
result in tomcat doing everything systemd is expecting without the need to fork or adding a secondary daemon manager just for this tomcat service.That means that we don't need
ExecStop=
anymore as the shutdown port is only there as a OS agnostic shutdown method. The jsvc (aka officially documented) method of launching tomcat use signals to stop the service just as systemd will when noExecStop=
is in the unit file so we know it will work properly.Moreover add the
SyslogIdentifier=
directive to make each tomcat easier to find in the system log.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.