3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Peter Simons 2019-09-11 14:52:47 +02:00
parent 86f8895abb
commit 0cc37b3cfa

View file

@ -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