summaryrefslogtreecommitdiffhomepage
path: root/systemd/dispatch.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/dispatch.service')
-rw-r--r--systemd/dispatch.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/systemd/dispatch.service b/systemd/dispatch.service
new file mode 100644
index 0000000..88e8352
--- /dev/null
+++ b/systemd/dispatch.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Dispatch AI Agent Server
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/dispatch-server
+EnvironmentFile=/etc/dispatch/env
+WorkingDirectory=/var/lib/dispatch
+Restart=on-failure
+RestartSec=5
+# Journal the output
+StandardOutput=journal
+StandardError=journal
+
+[Install]
+WantedBy=multi-user.target