I have two tomcat servers. I want with systemd to have tomcatB started only if tomcatA was successfully started.
e.g. tomcatB service should start right after "org.apache.catalina.startup.Catalina.start Server startup" is logged in catalina.out log file. Is that possible?
Try using both After=
and Requires=
in the unit file for tomcatB
to specify that it depends on A
and should start after it.