> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 如何保活从启动命令启动的应用的子进程

ggLeap 会关闭所有它没有故意启动的应用，因此我们需要让 ggLeap 启动该应用以避免这种情况。

在这个示例中，我们将使用矿工应用，因为大多数矿工会启动 cmd.exe。


1. 在启动命令中添加矿工
2. 由于它启动 cmd.exe，我们还需要在启动命令中添加 cmd.exe
3. 它应该是长时间运行的，并且应该与矿工具有相同的触发类型。

示例设置

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861427/undefined-Mar-31-2025-12-39-17-0045-AM.png?version=1&modificationDate=1743381568039&cacheVersion=1&api=v2)