← 返回 Skills 市场
maksmirnnov

OpenClaw Gateway Linux Fix

作者 Maks · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-gateway-linux-fix
功能描述
Fix and diagnose OpenClaw Gateway service issues on Linux. Use when the gateway service shows "disabled" status despite running, when `openclaw gateway statu...
安全使用建议
This is an instruction-only troubleshooting guide that is coherent with its purpose, but it performs system configuration changes — back up the unit file before editing (cp ~/.config/systemd/user/openclaw-gateway.service{,.bak}), inspect the proposed python one-liner first, and run commands interactively rather than blindly. Note that writing to /etc/profile.d and enabling linger may require root privileges. Verify the openclaw cron job target (Telegram chat ID) and the permissions of the openclaw CLI on your system before scheduling messages. The absence of scanner findings only means there was no code to statically analyze; it does not replace careful review and testing in a non-production environment.
功能分析
Type: OpenClaw Skill Name: openclaw-gateway-linux-fix Version: 1.1.1 The skill bundle provides legitimate diagnostic and repair steps for the OpenClaw Gateway service on Linux, addressing environment variable issues in systemd user units and providing a workaround for process termination during restarts. It uses standard system administration techniques (Python regex for file editing, loginctl for persistence) and lacks any indicators of malicious intent or data exfiltration. All actions are transparently documented in SKILL.md and references/diagnosis.md.
能力评估
Purpose & Capability
The name/description (OpenClaw Gateway Linux fixes) matches the actions in SKILL.md: editing the user systemd unit, reloading systemd, enabling linger, scheduling cron jobs via the OpenClaw CLI, and setting XDG_RUNTIME_DIR/DBUS env vars. No unrelated credentials, binaries, or network endpoints are requested.
Instruction Scope
Instructions operate on expected paths (~/.config/systemd/user/openclaw-gateway.service, /etc/profile.d, /tmp) and use systemctl, loginctl and the openclaw CLI. They do modify unit files and add env exports; this is within scope but is privileged/system configuration work. Minor scope issues: the python one‑liner assumes the unit file exists and doesn't robustly check errors; the skill instructs scheduling a cron job that will post to Telegram via the gateway (which is expected but worth verifying your openclaw cron permissions and destination ID).
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing will be downloaded or written by an installer. Risk surface is limited to commands the operator runs locally.
Credentials
No environment variables, credentials, or config paths are declared/required beyond the XDG_RUNTIME_DIR/DBUS vars that the skill explicitly adds to the systemd unit and shell profiles. Requesting those variables is proportional to fixing systemd user-bus reachability.
Persistence & Privilege
Skill does not request persistent or platform-wide privileges (always:false). It instructs editing user unit files and /etc/profile.d (the latter requires root), which is appropriate for the stated fixes but requires caution and appropriate privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-gateway-linux-fix
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-gateway-linux-fix 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Fix Issue 2: reorder steps (schedule cron before restart), add context passing via file, add What does NOT work section. Fix Issue 1: replace heredoc with python3 -c, use os.environ for safe path handling, remove broken sleep+status chain.
v1.1.0
Improved Issue 1 fix: replaced fragile sed one-liner with idempotent Python script. Added 'Why' column to shell escalation table. Fixed Quick check command in diagnosis.md (broken || chain). Clarified UID path detection in Step 2. Minor wording improvements throughout.
v1.0.0
Initial release of openclaw-gateway-linux-fix. Provides solutions for OpenClaw Gateway service showing 'disabled' on Linux, incorrect status reporting, and user/systemd environment variable issues. Documents the correct method to set XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS in the systemd unit file, not just in shell environments. Details a safe restart approach to prevent the gateway process from self-terminating its controlling shell. Addresses shell escalation issues and persistence of the service after reboot.
元数据
Slug openclaw-gateway-linux-fix
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

OpenClaw Gateway Linux Fix 是什么?

Fix and diagnose OpenClaw Gateway service issues on Linux. Use when the gateway service shows "disabled" status despite running, when `openclaw gateway statu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 OpenClaw Gateway Linux Fix?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-gateway-linux-fix」即可一键安装,无需额外配置。

OpenClaw Gateway Linux Fix 是免费的吗?

是的,OpenClaw Gateway Linux Fix 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw Gateway Linux Fix 支持哪些平台?

OpenClaw Gateway Linux Fix 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw Gateway Linux Fix?

由 Maks(@maksmirnnov)开发并维护,当前版本 v1.1.1。

💬 留言讨论