From 0cc37b3cfa64ffca70347566f0823010d48bbd97 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 11 Sep 2019 14:52:47 +0200 Subject: [PATCH] nixos/mailman: httpd.services requires mailman-web in the systemd sense When mailman-web restarts, it removes the generated "static" directory. This breaks a currently running httpd process, which needs a re-start, too, to obtain a new handle for the newly generated path. --- nixos/modules/services/mail/mailman.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index a3c007a55c9..5ed07d7deb3 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -184,7 +184,7 @@ in { systemd.services.mailman-web = { description = "Init Postorius DB"; before = [ "httpd.service" ]; - wantedBy = [ "httpd.service" ]; + requiredBy = [ "httpd.service" ]; script = '' ${djangoExe}/bin/mailman-django-admin migrate --pythonpath ${cfg.webRoot} --settings settings rm -rf static