Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

toolguard-daemon-control

bởi johnnylambada

iOS & macOS Development
493Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Manage long-running processes as macOS launchd services.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install johnnylambada/toolguard-daemon-control

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết