mirror of
https://github.com/systemd/systemd.git
synced 2025-02-08 09:57:41 +03:00
units: add Conditions for systemd-oomd.service
Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=1927148 and https://bugzilla.redhat.com/show_bug.cgi?id=1931181. Adds condition check for cgroups v2 and PSI, which systemd-oomd cannot start without.
This commit is contained in:
parent
10f4d47037
commit
13d0b19d4e
@ -13,6 +13,10 @@ Documentation=man:systemd-oomd.service(8)
|
|||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=multi-user.target shutdown.target
|
Before=multi-user.target shutdown.target
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
ConditionControlGroupController=v2
|
||||||
|
ConditionPathExists=/proc/pressure/cpu
|
||||||
|
ConditionPathExists=/proc/pressure/io
|
||||||
|
ConditionPathExists=/proc/pressure/memory
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE
|
AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user