docs: refresh linux gateway service guidance

This commit is contained in:
Peter Steinberger
2026-04-04 10:32:33 +01:00
parent 2d0ca75282
commit af4e9d19cf
3 changed files with 34 additions and 3 deletions

View File

@@ -177,6 +177,27 @@ For persistence after logout, enable lingering:
```bash
sudo loginctl enable-linger <user>
```
Manual user-unit example when you need a custom install path:
```ini
[Unit]
Description=OpenClaw Gateway
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/openclaw gateway --port 18789
Restart=always
RestartSec=5
TimeoutStopSec=30
TimeoutStartSec=30
SuccessExitStatus=0 143
KillMode=control-group
[Install]
WantedBy=default.target
```
</Tab>
@@ -190,6 +211,10 @@ sudo systemctl daemon-reload
sudo systemctl enable --now openclaw-gateway[-<profile>].service
```
Use the same service body as the user unit, but install it under
`/etc/systemd/system/openclaw-gateway[-<profile>].service` and adjust
`ExecStart=` if your `openclaw` binary lives elsewhere.
</Tab>
</Tabs>