0

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?

manu
  • 241
  • 1
  • 2
  • 16
  • Questions specific to `systemd` are more appropriate to be asked on http://serverfault.com, http://unix.stackexchange.com or if they are Ubuntu-specific http://askubuntu.com – Mark Stosberg May 31 '16 at 13:17

1 Answers1

1

Try using both After= and Requires= in the unit file for tomcatB to specify that it depends on A and should start after it.

Mark Stosberg
  • 12,961
  • 6
  • 44
  • 49