[Unit]
Description=DetMir autonomous health, AI report, and safe server-side recovery
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
User=igor
Group=igor
Environment=DETMIR_AUTO_HEAL=1
Environment=DETMIR_AI_STATE_DIR=/var/lib/detmir-ai
Environment=DETMIR_AI_RUN_DIR=/var/lib/detmir-ai/locks
ExecStart=/usr/local/bin/detmir-auto
TimeoutStartSec=300
Nice=5
IOSchedulingClass=best-effort
IOSchedulingPriority=7
