[Unit]
Description=Dispatch API Backend

[Service]
Type=simple
WorkingDirectory=/opt/dispatch
ExecStart=/usr/bin/bun packages/api/src/index.ts
EnvironmentFile=-/etc/dispatch/dispatch-api.conf
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=default.target
