360 Secure SkillHub
360 安全技能中心

Gateway Restart

该 Skill 针对 OpenClaw 网关重启不可靠的问题,规定统一使用 systemd 用户服务命令重启,并列出不应使用的高风险替代方式。

分类:自动化
suderbot
suderbot
热度 1.45
最近更新 2026-03-21 05:56:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add suderbot/gateway-restart
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
gateway-restart
description
Reliably restart the OpenClaw gateway service. Use whenever the gateway needs to be restarted, reloaded, or restarted after config changes.

Gateway Restart Skill

The Problem

Multiple methods of restarting the gateway are unreliable and can leave the system in a broken state requiring manual rescue.

The Solution

Always use this command to restart the gateway:

systemctl --user restart openclaw-gateway.service

When to Use

  • After modifying openclaw.json config
  • When the gateway is unresponsive
  • Any time a restart is needed

What This Does

  • Cleanly stops the current gateway process
  • Starts a fresh gateway instance via systemd
  • Properly handles port cleanup

What NOT to Use

  • openclaw gateway restart — unreliable, causes port conflicts
  • openclaw gateway stop + openclaw gateway start — leaves orphaned processes
  • pkill openclaw — too aggressive, can corrupt state