- symbiont-api.service: always-on API server, auto-restart on crash - symbiont-heartbeat.timer: 5-min health checks + queue processing - heartbeat.py: CLI auth check, disk check, ledger stats, queue drain Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
601 B
Desktop File
25 lines
601 B
Desktop File
[Unit]
|
|
Description=Symbiont AI Orchestrator API
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/data/symbiont
|
|
ExecStart=/usr/bin/python3 -m symbiont.main --serve --host 127.0.0.1 --port 8111
|
|
Restart=always
|
|
RestartSec=10
|
|
# If I crash 5 times in 60 seconds, stop trying (something is fundamentally wrong)
|
|
StartLimitIntervalSec=60
|
|
StartLimitBurst=5
|
|
# Environment
|
|
Environment=PYTHONUNBUFFERED=1
|
|
Environment=PYTHONPATH=/data/symbiont
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=symbiont-api
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|