ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

gateway-rescue

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理。崩溃自动重启,连续失败3次停止等待人工介入。 支持:install(安装)、uninstall(卸载)、status(状态)、test(故障测试)。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aqbjqtd/gateway-rescue
Or

gateway-rescue

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理,零自定义守护脚本。

一句话

用系统原生服务管理器守护 OpenClaw Gateway 进程,崩溃自动重启,失败3次后停止等待人工介入。

核心要点

  1. Linux/WSL2 → systemd service(Restart=on-failure,失败 3 次后停止,需人工介入)
  2. macOS → launchd plist + 轻量 wrapper(计数 3 次后停止,需人工介入)
  3. 极简实现 → Linux 零 wrapper,macOS 仅一个 20 行计数脚本
  4. 四个操作 → install / uninstall / status / test

使用方法

# 安装看门狗
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/install.sh

# 卸载看门狗
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/uninstall.sh

# 查看状态
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/status.sh

# 测试(停止 gateway,等待自动恢复)
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/test.sh

行为说明

平台服务管理器失败后失败限制
Linux/WSL2systemd自动重启5 分钟内失败 3 次后停止,需人工介入
macOSlaunchd自动重启连续失败 3 次后停止,需人工介入

文件结构

gateway-rescue/
├── SKILL.md              # 本文件
├── scripts/
│   ├── install.sh        # 自动检测平台并安装
│   ├── uninstall.sh      # 卸载服务
│   ├── status.sh         # 查看状态和日志
│   ├── test.sh           # 测试自动恢复
│   └── launchd-wrapper.sh # macOS 失败计数(3次停止)
└── units/
    ├── openclaw-gateway.service   # systemd 模板
    └── com.openclaw.gateway.plist # launchd 模板

Metadata

Author@aqbjqtd
Stars4044
Views1
Updated2026-04-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aqbjqtd-gateway-rescue": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

web-fixing

修复网页和前端界面问题。当用户要求修复网页、调试前端、解决UI问题、修复样式、响应式布局错误、移动端显示异常、CSS问题、JavaScript报错、交互功能失效、生成网页后检查并修复时使用此技能。

aqbjqtd 4473

ffmpeg-master-pro

FFmpeg Master Pro - 全能视频处理技能。当用户需要视频处理时使用,支持视频转换、视频压缩、视频编辑等。当用户要求视频处理, 视频转换, 视频压缩, FFmpeg, 视频编辑, 视频转码, 视频剪辑, 字幕处理, 视频优化, 批量视频处理, GIF转换, 视频翻转, 速度调节, 音频提取, 视频合并, 宽高比, 水印, 截图, 抽帧时使用此技能。

aqbjqtd 4473

excel-data-import

Import, merge, and transform data from Excel (.xlsx/.csv) files using YAML-driven configuration. Use when the user asks to: (1) import data from Excel/CSV into a template, (2) batch-process multiple files in a directory, (3) merge/consolidate data from multiple sources, (4) map and transform columns with validation rules, (5) do incremental data updates on existing spreadsheets. 当用户要求导入Excel、CSV导入、表格数据导入、Excel数据合并、批量处理Excel、字段映射、数据校验、 表头自动检测、增量更新Excel、多sheet合并时使用此技能。 Supports Chinese field names, multi-layer merged cell headers, auto header detection, CSV (auto-encoding), custom validators, and multi-source imports.

aqbjqtd 4473

code-simplifier

当用户要求简化代码、重构代码、优化代码、改进代码质量时使用此技能。提供代码简化原则和最佳实践指导,确保代码符合质量标准。

aqbjqtd 4473

openclaw-config-master

Edit and validate OpenClaw Gateway config (openclaw.json / JSON5). Covers all config areas — gateway, agents, channels, models, auth, tools, commands, session, hooks, secrets, acp, messages, plugins, skills, $include. Use when adding/changing config keys or diagnosing openclaw doctor/config validation errors, to avoid schema mismatches that prevent the Gateway from starting or weaken security policies.

aqbjqtd 4473