我在 cloudify 2.7 和 OpenStack 云上部署了一个“helloworld”服务。我会在不重新启动服务的情况下停止服务 tomcat。
因此,在 cloudify shell 中,我执行了:
cloudify@default> connect cloudify-manager-1_IP 连接成功 cloudify@default> use-application helloworld Using application helloworld cloudify@helloworld> invoke tomcat cloudify:start-maintenance-mode 60 Invocation results: 1: OK from instance #1@tomcat_IP,结果:代理故障检测成功禁用,持续 60 分钟调用成功完成
此时,我已通过 ssh 连接到 tomcat VM 并运行:
CATALINA_HOME/bin/catalina.sh 停止
在 CATALINA_HOME/log/catalina.out 我可以看到应用服务器正在停止并立即重新启动!
那么,我应该怎么做才能停止应用服务器并仅在我决定重新启动它时才重新启动它?