From c58d811e719da91e195b1fc3c29c2554c1d9b0ad Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sun, 21 Jun 2026 21:18:53 +0900 Subject: feat(install): run dispatch service as user, not root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- systemd/dispatch.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd') 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 -- cgit v1.2.3