diff options
author | Peter Simons <simons@cryp.to> | 2019-09-11 14:52:47 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-09-11 14:52:47 +0200 |
commit | 0cc37b3cfa64ffca70347566f0823010d48bbd97 (patch) | |
tree | 1a89b373c073d544773e23e0eb4e0dfb8dc49984 /nixos | |
parent | 86f8895abbfdb3ce118e0ca971f56c7f72871e29 (diff) | |
download | nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar.gz nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar.bz2 nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar.lz nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar.xz nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.tar.zst nixlib-0cc37b3cfa64ffca70347566f0823010d48bbd97.zip |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/mailman.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index a3c007a55c94..5ed07d7deb32 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 |