1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-09 09:57:26 +03:00

Merge pull request #18751 from anitazha/oomdconditions

units: add Conditions for systemd-oomd.service
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-23 15:30:33 +01:00 committed by GitHub
commit e74bd83a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

3
README
View File

@ -126,6 +126,9 @@ REQUIREMENTS:
Required for systemd-nspawn:
CONFIG_DEVPTS_MULTIPLE_INSTANCES or Linux kernel >= 4.7
Required for systemd-oomd:
CONFIG_PSI
Note that kernel auditing is broken when used with systemd's
container code. When using systemd in conjunction with
containers, please make sure to either turn off auditing at

View File

@ -13,6 +13,10 @@ Documentation=man:systemd-oomd.service(8)
DefaultDependencies=no
Before=multi-user.target shutdown.target
Conflicts=shutdown.target
ConditionControlGroupController=v2
ConditionPathExists=/proc/pressure/cpu
ConditionPathExists=/proc/pressure/io
ConditionPathExists=/proc/pressure/memory
[Service]
AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE