rfjakob / earlyoom

earlyoom - Early OOM Daemon for Linux
MIT License
2.96k stars 157 forks source link

earlyoom.service: add Conflicts #306

Closed yangfl closed 7 months ago

yangfl commented 9 months ago

Some distros default to systemd oom handling. Mark systemd unit conflict with other oom handlers to prevent incompatibility.

hakavlad commented 8 months ago

missing nohang-desktop.service

hakavlad commented 8 months ago

IMHO 'Conflicts' option creates unexpected behavior when starting one service stops another. But I don't know which solution is optimal.

hakavlad commented 8 months ago

conflict with other oom handlers to prevent incompatibility.

This is not necessarily incompatibility: just one killer will work before the other.

rfjakob commented 8 months ago

Yeah, not sure about this. Having multiple oom handlers is strange, but can still work.

A warning would be enough. Is there a way to have systemd warn about it but not prevent it?