重启所有神任务
以下是上帝重启命令的描述:restart <任务或组名称>
。内置 init 脚本执行终止操作,然后启动。真的没有内置方法可以向所有手表发送重启命令,无论它们是否分组?
Here's the description for god's restart command: restart <task or group name>
. The builtin init script does a kill, followed by a start. Is there really no built-in way to send a restart command to all watches whether they are grouped or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一种方法可以重新启动所有手表(这是一种黑客),但下面应该会产生这种行为。它终止 God 和所有任务,然后重新启动 God。
There is a way to restart all watches (it is a hack), but the below should produce the behavior. It terminates god and all tasks, then restarts god.
对于那些正在寻找当前解决方案的人,请注意此功能现已在 0.13.3 中提供:如果没有给出启动/停止/重新启动的参数,它将在所有手表上触发。
For people reaching there looking for a current solution, please note this feature is now provided in 0.13.3 : if no parameter is given to start / stop / restart, it will be triggered on all watches.
不,没有。您必须重新启动每个组或每个单独的进程。
Nope, there isn't. You have to restart either each group or each individual process.