fix(daemon): align systemd unit with documentation

Align generated systemd service file with docs:
https://docs.clawd.bot/gateway#supervision-systemd-user-unit

Adds:
- After=network-online.target
- Wants=network-online.target
- RestartSec=5
This commit is contained in:
Azade
2026-01-08 11:20:05 +00:00
committed by Peter Steinberger
parent 0c74ef25d6
commit 3a8d8bc6a4

View File

@@ -141,10 +141,13 @@ function buildSystemdUnit({
return [
"[Unit]",
"Description=Clawdbot Gateway",
"After=network-online.target",
"Wants=network-online.target",
"",
"[Service]",
`ExecStart=${execStart}`,
"Restart=always",
"RestartSec=5",
workingDirLine,
...envLines,
"",