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
gateway-restart restart— Wait for active work to finish, then restartgateway-restart status— Check if anything is actively running (no restart)gateway-restart restart --force— Skip waiting, restart immediatelygateway-restart restart --timeout 300— Custom wait timeout in seconds (default: 300)gateway-restart restart --remote <host>— Restart a remote fleet machine via SSH
Detection Strategy
- Session age check — Query
openclaw gateway call status --jsonfor sessions updated in the last 60 seconds - Log confirmation — If sessions look active, parse today's gateway log for
unmatched
inbound web messagewithout a subsequentauto-reply sent - Cron job check — Query
openclaw cron list --jsonfor currently-running jobs
Setup
No setup required. Uses openclaw CLI commands available on any OpenClaw installation.