mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
unit: add conditions and deps to make oomd.socket and .service consistent
Fixes #27690.
This commit is contained in:
parent
47f4ddaf28
commit
d0e3ae838f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user