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:
@@ -141,10 +141,13 @@ function buildSystemdUnit({
|
|||||||
return [
|
return [
|
||||||
"[Unit]",
|
"[Unit]",
|
||||||
"Description=Clawdbot Gateway",
|
"Description=Clawdbot Gateway",
|
||||||
|
"After=network-online.target",
|
||||||
|
"Wants=network-online.target",
|
||||||
"",
|
"",
|
||||||
"[Service]",
|
"[Service]",
|
||||||
`ExecStart=${execStart}`,
|
`ExecStart=${execStart}`,
|
||||||
"Restart=always",
|
"Restart=always",
|
||||||
|
"RestartSec=5",
|
||||||
workingDirLine,
|
workingDirLine,
|
||||||
...envLines,
|
...envLines,
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user