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