跳到正文
TakoAPI
返回技能列表

toolguard-daemon-control

由 johnnylambada 提供

iOS & macOS Development
493下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage long-running processes as macOS launchd services.

描述

该技能的功能

Manages executables as persistent macOS launchd user agents. Handles plist creation, service lifecycle (start, stop, restart), and log access through a set of shell scripts. Services auto-restart on crash and run without elevated privileges.

Using launchd instead of background shell processes means services survive session ends and restart automatically on failure without any manual intervention.

何时使用

  • Keep a local proxy server running after terminal closes
  • Auto-restart a development backend that crashes intermittently
  • Run a scheduled background worker as a persistent user service
  • Check which background services are currently active on macOS
  • Tail logs from a long-running daemon without manual log hunting

示例工作流

输入

User asks: run my Go server at ~/projects/myapp as a background service that restarts on crash

智能体
  1. 1

    Build the Go binary with go build to produce an absolute binary path

  2. 2

    Call install.sh with the service name, binary path, any required args, and --workdir set to the project directory

  3. 3

    Verify the service is running with status.sh

  4. 4

    Confirm log output is appearing with logs.sh --follow

输出

Service installed at ~/Library/LaunchAgents/ai.toolguard.myapp.plist, running as a user agent, logs streaming to ~/Library/Logs/toolguard/myapp/

安装

clawhub install johnnylambada/toolguard-daemon-control

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接