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