diff options
| author | Adam Malczewski <[email protected]> | 2026-05-29 12:23:30 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-29 12:23:30 +0900 |
| commit | 0954c6520878e073c7822fc4a8f4a752474f5d7a (patch) | |
| tree | b19012f89ccbb07bf3180612a6cfef7077618d6b /packaging/dispatch-api.service | |
| parent | d6609efd4e14101e77fb35a98ce597a32816862d (diff) | |
| download | dispatch-0954c6520878e073c7822fc4a8f4a752474f5d7a.tar.gz dispatch-0954c6520878e073c7822fc4a8f4a752474f5d7a.zip | |
fix(packaging): convert dispatch-systemd from user units to system template units (User=%i)
The per-user systemd manager ([email protected]) fails to start on WSL
(kernel 6.6.87.2, microsoft/WSL#13186 — 'Failed to spawn executor:
Device or resource busy'), which breaks pacman's
30-systemd-daemon-reload-user.hook on install.
Changes:
- New [email protected] + [email protected] system
template units with User=%i (run as the named instance user)
- Remove old user-scope dispatch-api.service / dispatch-frontend.service
- Install to /usr/lib/systemd/system/ instead of .../systemd/user/
- Update PKGBUILD, .install hints, and bin/service to use
sudo systemctl dispatch-api@<user>
Diffstat (limited to 'packaging/dispatch-api.service')
| -rw-r--r-- | packaging/dispatch-api.service | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packaging/dispatch-api.service b/packaging/dispatch-api.service deleted file mode 100644 index 120d460..0000000 --- a/packaging/dispatch-api.service +++ /dev/null @@ -1,15 +0,0 @@ -[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 |
