install
source ยท Clone the upstream repo
git clone https://github.com/TechNickAI/openclaw-config
Claude Code ยท Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TechNickAI/openclaw-config "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/gateway-restart" ~/.claude/skills/technickai-openclaw-config-gateway-restart && rm -rf "$T"
OpenClaw ยท Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TechNickAI/openclaw-config "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/gateway-restart" ~/.openclaw/skills/technickai-openclaw-config-gateway-restart && rm -rf "$T"
manifest:
skills/gateway-restart/SKILL.mdsource content
Gateway Restart Skill ๐
Gracefully restarts the OpenClaw gateway by waiting for active queries and cron jobs to complete before restarting. Prevents mid-conversation interruptions.
Users say things like:
- "Restart the gateway gracefully"
- "Is the gateway busy right now?"
- "Restart the gateway on the remote machine"
Commands
โ Wait for active work to finish, then restartgateway-restart restart
โ Check if anything is actively running (no restart)gateway-restart status
โ Skip waiting, restart immediatelygateway-restart restart --force
โ Custom wait timeout in seconds (default: 300)gateway-restart restart --timeout 300
โ Restart a remote fleet machine via SSHgateway-restart restart --remote <host>
Detection Strategy
- Session age check โ Query
for sessions updated in the last 60 secondsopenclaw gateway call status --json - Log confirmation โ If sessions look active, parse today's gateway log for
unmatched
without a subsequentinbound web messageauto-reply sent - Cron job check โ Query
for currently-running jobsopenclaw cron list --json
Setup
No setup required. Uses
openclaw CLI commands available on any OpenClaw installation.