From fcfe5cf26483b6e187cba088b7320815fbfac6e3 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 10 Aug 2026 02:31:59 +1000 Subject: [PATCH] fix(deploy): wire ExecReload so SIGHUP config reload works under systemd archied v1.7.0 reloads its configuration on SIGHUP, but neither the unit written by install.sh nor the one in the systemd runbook declared ExecReload. 'systemctl --user reload archied' therefore failed, and the only way to reach the new reload path was to know about 'systemctl --user kill -s HUP'. The feature shipped with no supported trigger in the documented deployment shape. Existing installs need the same line added, either by re-running install.sh or via a drop-in. --- deployments/systemd-user-service.md | 1 + install.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/deployments/systemd-user-service.md b/deployments/systemd-user-service.md index 6731a8c35..6a4afe039 100644 --- a/deployments/systemd-user-service.md +++ b/deployments/systemd-user-service.md @@ -17,6 +17,7 @@ After=network.target Type=simple ExecStart=%h/.local/bin/archied -config %h/.config/archie/config.toml EnvironmentFile=-%h/.config/archie/env +ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5s diff --git a/install.sh b/install.sh index 7fa31051c..c4ac39b5f 100755 --- a/install.sh +++ b/install.sh @@ -439,6 +439,10 @@ StartLimitBurst=5 Type=simple ExecStart=${ARCHIE_BIN_DIR}/archied -config ${ARCHIE_CONFIG_DIR}/config.toml EnvironmentFile=-${ENV_FILE} +# archied reloads its configuration on SIGHUP. Without ExecReload, +# 'systemctl --user reload archied' fails and the operator has to know +# to run 'systemctl --user kill -s HUP' instead. +ExecReload=/bin/kill -HUP \$MAINPID Restart=on-failure RestartSec=5s