- Fix build_runtime_graph to use backend-agnostic records_as_dataframe() and edges_as_dataframe() instead of LanceDB-specific open_table() - Fix CLI topology command: JSON-RPC envelope + result extraction - Fix community.py KeyError when graph has nodes but no edges - Update doctor check (i) to report Qdrant collection counts when Qdrant is active, LanceDB versions when LanceDB is active - Fix HIBERNATION startup exit: dispatch REQUEST_ARRIVED on boot - Fix systemd unit: StartLimit* keys in [Unit] section - Broaden capture.py exception handler for deferred capture failures - Add records_as_dataframe() and edges_as_dataframe() to MemoryStore
42 lines
1.3 KiB
Desktop File
42 lines
1.3 KiB
Desktop File
# IAI-MCP Sleep Daemon -- systemd user unit (Plan 04-01, DAEMON-01)
|
|
#
|
|
# Install at ~/.config/systemd/user/iai-mcp-daemon.service, then:
|
|
# systemctl --user daemon-reload
|
|
# systemctl --user enable --now iai-mcp-daemon.service
|
|
#
|
|
# For survival past logout (headless servers):
|
|
# loginctl enable-linger $USER
|
|
#
|
|
# C3 / guard: NO paid-API env var in Environment= lines. host_cli.py
|
|
# scrubs the subprocess env at spawn time; the unit env is intentionally minimal.
|
|
|
|
[Unit]
|
|
Description=IAI-MCP Sleep Daemon -- autonomous neural consolidation between sessions
|
|
After=default.target
|
|
StartLimitIntervalSec=60
|
|
StartLimitBurst=3
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=%h/.venv/iai-mcp/bin/python -m iai_mcp.daemon
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
|
|
Environment="IAI_MCP_STORE=%h/.iai-mcp"
|
|
Environment="QDRANT_URL=http://192.168.0.22:6333"
|
|
Environment="QDRANT_API_KEY=1CerixWX$3zdlj"
|
|
Environment="IAI_MCP_EMBED_MODEL=bge-m3"
|
|
Environment="LANG=en_US.UTF-8"
|
|
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=iai-mcp-daemon
|
|
|
|
# Graceful shutdown: systemd default TimeoutStopSec is 90s; we tighten to 60s
|
|
# so stop never kills us mid-Claude (subprocess timeout is 120s but the
|
|
# daemon aborts the pending call cleanly on SIGTERM).
|
|
TimeoutStopSec=60
|
|
KillSignal=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=default.target
|