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 ```bash
sudo loginctl enable-linger <user> 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> </Tab>
@@ -190,6 +211,10 @@ sudo systemctl daemon-reload
sudo systemctl enable --now openclaw-gateway[-<profile>].service 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> </Tab>
</Tabs> </Tabs>

View File

@@ -156,7 +156,7 @@ read_when:
"defaults": { "defaults": {
"model": { "model": {
"primary": "anthropic/claude-opus-4-6", "primary": "anthropic/claude-opus-4-6",
"fallbacks": ["anthropic/claude-sonnet-4-6", "openai/gpt-4o"] "fallbacks": ["anthropic/claude-sonnet-4-6", "openai/gpt-5.4"]
}, },
"maxConcurrent": 4 "maxConcurrent": 4
}, },

View File

@@ -65,8 +65,10 @@ openclaw doctor
## System control (systemd user unit) ## System control (systemd user unit)
OpenClaw installs a systemd **user** service by default. Use a **system** OpenClaw installs a systemd **user** service by default. Use a **system**
service for shared or always-on servers. The full unit example and guidance service for shared or always-on servers. `openclaw gateway install` and
live in the [Gateway runbook](/gateway). `openclaw onboard --install-daemon` already render the current canonical unit
for you; write one by hand only when you need a custom system/service-manager
setup. The full service guidance lives in the [Gateway runbook](/gateway).
Minimal setup: Minimal setup:
@@ -82,6 +84,10 @@ Wants=network-online.target
ExecStart=/usr/local/bin/openclaw gateway --port 18789 ExecStart=/usr/local/bin/openclaw gateway --port 18789
Restart=always Restart=always
RestartSec=5 RestartSec=5
TimeoutStopSec=30
TimeoutStartSec=30
SuccessExitStatus=0 143
KillMode=control-group
[Install] [Install]
WantedBy=default.target WantedBy=default.target