mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +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:
parent
69536af27e
commit
838d40d61a
2 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,7 @@ in {
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${cfg.package}/bin/foot --server";
|
ExecStart = "${cfg.package}/bin/foot --server";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
OOMPolicy = "continue";
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
|
|
|
@ -3,6 +3,7 @@ WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@foot@/bin/foot --server
|
ExecStart=@foot@/bin/foot --server
|
||||||
|
OOMPolicy=continue
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|
Loading…
Reference in a new issue