Use scripts/safe_apply.sh to enforce: backup → apply → restart → health check → optional ack wait → rollback on failure.
bash scripts/safe_apply.sh \
--config ~/.openclaw/openclaw.json \
--apply-cmd 'python3 /tmp/patch.py' \
--ack-timeout 60 \
--require-ack
When --require-ack is enabled, the script prints an ack token file path.
A successful manual ack is:
touch <ack-file-path>
If timeout expires without ack, rollback is triggered automatically.
openclaw gateway status and require RPC probe: okopenclaw gateway restart.bak.YYYYmmdd-HHMMSS --apply-cmd).--require-ack --ack-timeout 45 for production changes.共 1 个版本