solution gateway high windows
Windows (WSL2): gateway service install fails (systemd not enabled)
Fix WSL2 gateway daemon install issues by enabling systemd in /etc/wsl.conf, shutting down WSL, and retrying openclaw gateway install.
By CoClaw Team •
Error signatures: systemd | gateway install
Symptoms
- On Windows you installed OpenClaw inside WSL2, but
openclaw gateway installfails. - Older notes may mention
openclaw onboard --install-daemon; treat that as legacy symptom text and retry with the current gateway install command. - systemd user services aren’t available.
Cause
For WSL2 installs, gateway service installation relies on systemd inside the WSL distro. systemd is not enabled by default on some installs.
Fix
Inside WSL:
sudo tee /etc/wsl.conf >/dev/null <<'EOF'
[boot]
systemd=true
EOF
Then from Windows PowerShell:
wsl --shutdown
Re-open your WSL distro and verify:
systemctl --user status
Now retry:
openclaw gateway install
Verify
openclaw gateway status
openclaw status