Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个 tomcat 服务器。我希望只有在成功启动 tomcatA 时才使用 systemd 启动 tomcatB。
例如,tomcatB 服务应该在 catalina.out 日志文件中记录“org.apache.catalina.startup.Catalina.start Server startup”之后立即启动。那可能吗?
尝试在单元文件中同时使用After=和Requires=tomcatB来指定它依赖于它A并且应该在它之后开始。
After=
Requires=
tomcatB
A