nixos/mailman: restart services on failure and increase mailman timeouts

This commit is contained in:
Molly Miller 2023-10-18 08:39:57 +02:00 committed by Alyssa Ross
parent c4715cf476
commit 9cec5c807a

View File

@ -493,6 +493,9 @@ in {
RuntimeDirectory = "mailman"; RuntimeDirectory = "mailman";
LogsDirectory = "mailman"; LogsDirectory = "mailman";
PIDFile = "/run/mailman/master.pid"; PIDFile = "/run/mailman/master.pid";
Restart = "on-failure";
TimeoutStartSec = 180;
TimeoutStopSec = 180;
}; };
}; };
@ -596,6 +599,7 @@ in {
User = cfg.webUser; User = cfg.webUser;
Group = "mailman"; Group = "mailman";
RuntimeDirectory = "mailman-uwsgi"; RuntimeDirectory = "mailman-uwsgi";
Restart = "on-failure";
}; };
}); });
@ -620,6 +624,7 @@ in {
User = cfg.webUser; User = cfg.webUser;
Group = "mailman"; Group = "mailman";
WorkingDirectory = "/var/lib/mailman-web"; WorkingDirectory = "/var/lib/mailman-web";
Restart = "on-failure";
}; };
}; };
} // flip lib.mapAttrs' { } // flip lib.mapAttrs' {