From 6284a20f77268d037823794f36396ab2e6b84a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Tue, 15 Feb 2022 16:42:11 +0100 Subject: [PATCH] acme: Switch from `postRun` to `reloadServices` to fix hangs. Fixes #232 --- mail-server/nginx.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail-server/nginx.nix b/mail-server/nginx.nix index 1590c5f..abc6421 100644 --- a/mail-server/nginx.nix +++ b/mail-server/nginx.nix @@ -36,9 +36,9 @@ in }; }; - security.acme.certs."${cfg.fqdn}".postRun = '' - systemctl reload postfix - systemctl reload dovecot2 - ''; + security.acme.certs."${cfg.fqdn}".reloadServices = [ + "postfix.service" + "dovecot2.service" + ]; }; }