1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

foot: set OOMPolicy=continue for foot server (#2749)

Previously, if a process inside a foot client triggered the OOM killer,
systemd would also kill the parent unit, namely the foot server.
This is not ideal if a user has a lot of clients attached, and it's
usually not the terminal emulator's fault that a process inside it has
ended up using all the available memory.
This commit is contained in:
Josh Holland 2022-02-22 19:15:28 +00:00 committed by GitHub
parent 69536af27e
commit 838d40d61a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -71,6 +71,7 @@ in {
Service = {
ExecStart = "${cfg.package}/bin/foot --server";
Restart = "on-failure";
OOMPolicy = "continue";
};
Install = { WantedBy = [ "graphical-session.target" ]; };

View file

@ -3,6 +3,7 @@ WantedBy=graphical-session.target
[Service]
ExecStart=@foot@/bin/foot --server
OOMPolicy=continue
Restart=on-failure
[Unit]