fix(systemd): Restart=always so daemon restarts after HIBERNATION clean exit

The daemon exits with status 0 on HIBERNATION (by design, to drop RSS).
Restart=on-failure only restarts on non-zero exits, so the daemon
stayed dead. Change to Restart=always.
This commit is contained in:
Apunkt 2026-05-19 10:32:06 +02:00
parent 382b411133
commit 7f01b8824e
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ StartLimitBurst=3
[Service] [Service]
Type=simple Type=simple
ExecStart=%h/.venv/iai-mcp/bin/python -m iai_mcp.daemon ExecStart=%h/.venv/iai-mcp/bin/python -m iai_mcp.daemon
Restart=on-failure Restart=always
RestartSec=30 RestartSec=30
Environment="IAI_MCP_STORE=%h/.iai-mcp" Environment="IAI_MCP_STORE=%h/.iai-mcp"