重启所有神任务

发布于 2024-12-22 16:15:27 字数 109 浏览 5 评论 0原文

以下是上帝重启命令的描述: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

蘸点软妹酱 2024-12-29 16:15:27

有一种方法可以重新启动所有手表(这是一种黑客),但下面应该会产生这种行为。它终止 God 和所有任务,然后重新启动 God。

$ sudo god terminate && sudo /etc/init.d/god start

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.

$ sudo god terminate && sudo /etc/init.d/god start
Bonjour°[大白 2024-12-29 16:15:27

对于那些正在寻找当前解决方案的人,请注意此功能现已在 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.

仅冇旳回忆 2024-12-29 16:15:27

不,没有。您必须重新启动每个组或每个单独的进程。

Nope, there isn't. You have to restart either each group or each individual process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文