summaryrefslogtreecommitdiffhomepage
path: root/systemd
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-21 21:18:53 +0900
committerAdam Malczewski <[email protected]>2026-06-21 21:18:53 +0900
commitc58d811e719da91e195b1fc3c29c2554c1d9b0ad (patch)
treed96bbe5965b624d6f19008c1422a70e499051d77 /systemd
parent219e7f2dd0ff2d0125f18594c6c16a6c0aff6710 (diff)
downloaddispatch-c58d811e719da91e195b1fc3c29c2554c1d9b0ad.tar.gz
dispatch-c58d811e719da91e195b1fc3c29c2554c1d9b0ad.zip
feat(install): run dispatch service as user, not root
systemd service: User= and Group= patched by bin/install from SUDO_USER. bin/setup-env: chowns data dirs to the real user. Since the service runs as the user, os.homedir() resolves correctly for skills discovery — no separate HOME env var needed.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/dispatch.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/dispatch.service b/systemd/dispatch.service
index 88e8352..e651fa7 100644
--- a/systemd/dispatch.service
+++ b/systemd/dispatch.service
@@ -4,12 +4,12 @@ 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
-# Journal the output
StandardOutput=journal
StandardError=journal