projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f4dda
)
unit: add conditions and deps to make oomd.socket and .service consistent
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 18 May 2023 19:47:34 +0000
(
04:47
+0900)
committer
Frantisek Sumsal
<frantisek@sumsal.cz>
Fri, 19 May 2023 06:58:56 +0000
(08:58 +0200)
Fixes #27690.
units/systemd-oomd.socket
patch
|
blob
|
history
diff --git
a/units/systemd-oomd.socket
b/units/systemd-oomd.socket
index 47cd0e755589016b5449a89d6dbb959f08350c17..70eb6b7bc3c4d133b1928be224e2b67e04d5dd13 100644
(file)
--- a/
units/systemd-oomd.socket
+++ b/
units/systemd-oomd.socket
@@
-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