]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Order systemd-oomd after systemd-sysusers
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 21 Dec 2024 16:01:27 +0000 (17:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Aug 2025 15:24:45 +0000 (17:24 +0200)
systemd-sysusers might create the systemd-oom system user that
systemd-oomd runs under so let's order systemd-oomd after
systemd-sysusers.

(cherry picked from commit 36dd4296806b5541eb67cd13c535eb0fe3213121)

units/systemd-oomd.service.in

index 670d5e61408142d20793429a29f5548207c892e2..6838ddccef46a0f3941440b807bfc93052792542 100644 (file)
@@ -20,7 +20,7 @@ ConditionPathExists=/proc/pressure/cpu
 ConditionPathExists=/proc/pressure/io
 ConditionPathExists=/proc/pressure/memory
 Requires=systemd-oomd.socket
-After=systemd-oomd.socket
+After=systemd-oomd.socket systemd-sysusers.service
 
 [Service]
 AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE