1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-12-04 18:56:56 +01:00

archivr: reload nginx without blocking from tailscale-cert-mjr (fixes switch deadlock)

This commit is contained in:
TheGeneralist 2026-11-03 21:25:54 +01:00
parent 154fb79605
commit 44167c7ef9
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -58,8 +58,9 @@ in
${pkgs.coreutils}/bin/chown -R acme:nginx /var/lib/acme/${domain}
${pkgs.coreutils}/bin/chmod 0750 /var/lib/acme/${domain}
${pkgs.coreutils}/bin/chmod 0640 /var/lib/acme/${domain}/*
# --no-block: this unit is ordered before nginx, so a blocking reload would wait on this very job.
if ${pkgs.systemd}/bin/systemctl is-active --quiet nginx.service; then
${pkgs.systemd}/bin/systemctl reload nginx.service || true
${pkgs.systemd}/bin/systemctl --no-block reload nginx.service || true
fi
'';
};