]> 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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 21 Dec 2024 18:14:30 +0000 (19:14 +0100)
systemd-sysusers might create the systemd-oom system user that
systemd-oomd runs under so let's order systemd-oomd after
systemd-sysusers.

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