1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

unit: add conditions and deps to make oomd.socket and .service consistent

Fixes #27690.
This commit is contained in:
Yu Watanabe 2023-05-19 04:47:34 +09:00 committed by Frantisek Sumsal
parent 47f4ddaf28
commit d0e3ae838f

View File

@ -11,7 +11,13 @@
Description=Userspace Out-Of-Memory (OOM) Killer Socket
Documentation=man:systemd-oomd.service(8)
DefaultDependencies=no
Before=sockets.target
Before=sockets.target shutdown.target
Conflicts=shutdown.target
ConditionControlGroupController=v2
ConditionControlGroupController=memory
ConditionPathExists=/proc/pressure/cpu
ConditionPathExists=/proc/pressure/io
ConditionPathExists=/proc/pressure/memory
[Socket]
ListenStream=/run/systemd/oom/io.system.ManagedOOM