summaryrefslogtreecommitdiffhomepage
path: root/packaging/[email protected]
blob: e1946dda0236d3a816a488a748c951dd1d0b89d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Dispatch API server (user %i)
After=network.target local-fs.target home.mount
# The API stores its SQLite DB and reads Claude credentials under the user's
# home (~/.local/share/dispatch). If /home is a separate filesystem, starting
# before it is mounted makes credential discovery fail (EACCES) and Claude
# tabs fall back to an empty API key (401). Ensure /home is mounted first.
RequiresMountsFor=/home

[Service]
Type=simple
User=%i
Environment=NODE_ENV=production
Environment=PORT=18390
WorkingDirectory=/opt/dispatch
ExecStart=/usr/bin/bun packages/api/src/index.ts
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target