docs: clarify lingering onboarding notes

This commit is contained in:
Peter Steinberger
2026-01-05 21:19:49 +00:00
parent de153a40d0
commit dbea8eb69e
5 changed files with 10 additions and 8 deletions

View File

@@ -182,7 +182,7 @@ Enable lingering (required so the user service survives logout/idle):
```
sudo loginctl enable-linger youruser
```
Requires sudo (writes `/var/lib/systemd/linger`).
Onboarding runs this on Linux (may prompt for sudo; writes `/var/lib/systemd/linger`).
Then enable the service:
```
systemctl --user enable --now clawdbot-gateway.service
@@ -190,9 +190,10 @@ systemctl --user enable --now clawdbot-gateway.service
**Alternative (system service)** - for always-on or multi-user servers, you can
install a systemd **system** unit instead of a user unit (no lingering needed).
Create `/etc/systemd/system/clawdbot-gateway.service`, set `User=` and
`WorkingDirectory=`, then enable with:
Create `/etc/systemd/system/clawdbot-gateway.service` (copy the unit above,
switch `WantedBy=multi-user.target`, set `User=` + `WorkingDirectory=`), then:
```
sudo systemctl daemon-reload
sudo systemctl enable --now clawdbot-gateway.service
```