Merge pull request 'Fix opencode web restart during host updates' (#48) from fix/opencode-web-root-cleanup-20261123 into main

This commit was merged in pull request #48.
This commit is contained in:
2026-11-23 18:29:28 +00:00
+2 -1
View File
@@ -288,7 +288,8 @@ SSHCFG
User = "loops"; Group = "users";
WorkingDirectory = "/srv/cc-ci-orch/cc-ci";
EnvironmentFile = [ "-/srv/cc-ci/cc-ci/.env.public" "/srv/cc-ci/.testenv" ];
ExecStartPre = "${pkgs.coreutils}/bin/rm -rf /tmp/opencode";
# Test tools can leave root-owned files here; only cleanup needs root.
ExecStartPre = "+${pkgs.coreutils}/bin/rm -rf /tmp/opencode";
ExecStart = "/home/loops/.local/bin/opencode serve --hostname 127.0.0.1 --port 4096";
Restart = "on-failure";
RestartSec = "5s";