From 9d54686c93cbbd9bcc0aa6f1412446dd8f73ccd7 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Sun, 21 Jun 2026 12:24:00 +0200 Subject: [PATCH] fix(freebsd): move chmod after daemon command in dashboard rc.d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The chmod 644 on pidfiles was injected mid-command between daemon(8) and its arguments (--host, --port, etc.), causing the shell to pass 'chmod' as a subcommand argument to 'hermes dashboard', which instantly crashed. Move it after the complete daemon invocation. This caused the 502 Bad Gateway on ai.clawdie.si after restart — dashboard process never started because it rejected 'chmod' as an invalid dashboard subcommand. --- packaging/freebsd/hermes_dashboard.in | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/freebsd/hermes_dashboard.in b/packaging/freebsd/hermes_dashboard.in index a15acb385..f733f5186 100644 --- a/packaging/freebsd/hermes_dashboard.in +++ b/packaging/freebsd/hermes_dashboard.in @@ -82,6 +82,7 @@ hermes_dashboard_start() --port "${hermes_dashboard_port}" \ --no-open \ --skip-build + chmod 644 "${supervisor_pidfile}" "${pidfile}" 2>/dev/null || true } hermes_dashboard_stop()