mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 20:28:21 +00:00
nixos/mailman: restart services on failure and increase mailman timeouts
This commit is contained in:
parent
c4715cf476
commit
9cec5c807a
@ -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' {
|
||||
|
Loading…
Reference in New Issue
Block a user