nixos/mailman: restart services when config changed

This commit is contained in:
Alyssa Ross 2020-01-10 13:36:39 +00:00
parent 881dd9963f
commit 8f4fd4d9f5

View file

@ -209,6 +209,7 @@ in {
systemd.services.mailman = {
description = "GNU Mailman Master Process";
after = [ "network.target" ];
restartTriggers = [ config.environment.etc."mailman.cfg".source ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.mailman}/bin/mailman start";
@ -280,6 +281,7 @@ in {
systemd.services.mailman-daily = {
description = "Trigger daily Mailman events";
startAt = "daily";
restartTriggers = [ config.environment.etc."mailman.cfg".source ];
serviceConfig = {
ExecStart = "${pkgs.mailman}/bin/mailman digests --send";
User = "mailman";