[Unit]
Description=Dispatch AI Agent Server
After=network.target

[Service]
Type=simple
# User/Group are set by bin/install (patched from SUDO_USER)
ExecStart=/usr/bin/dispatch-server
EnvironmentFile=/etc/dispatch/env
WorkingDirectory=/var/lib/dispatch
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
