From 596f194c3a59dfcb80f3c49dcbcc4f5f20c525bf Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Fri, 31 Jul 2026 15:32:31 -0400 Subject: [PATCH] fix: set WorkingDirectory to /opt/llamalink/data in systemd unit The llamalink service fails to start because ProtectSystem=strict only allows writes to ReadWritePaths=/opt/llamalink/data, but the default DATABASE_URL=sqlite:///./llamalink.db resolves relative to WorkingDirectory. With WorkingDirectory=/opt/llamalink, the db lands at /opt/llamalink/llamalink.db which is not in ReadWritePaths, causing sqlite open to fail. Setting WorkingDirectory=/opt/llamalink/data aligns with the package layout (postinst creates /opt/llamalink/data) and makes the default ./llamalink.db resolve to the correct writable location. --- deploy/llamalink.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/llamalink.service b/deploy/llamalink.service index 5899167..e45ddfa 100644 --- a/deploy/llamalink.service +++ b/deploy/llamalink.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=simple User=llamalink -WorkingDirectory=/opt/llamalink +WorkingDirectory=/opt/llamalink/data EnvironmentFile=/etc/llamalink/env ExecStart=/usr/local/bin/llamalink Restart=on-failure