]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-oomd.socket
Merge pull request #27670 from poettering/switch-root-umount-all
[thirdparty/systemd.git] / units / systemd-oomd.socket
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Userspace Out-Of-Memory (OOM) Killer Socket
12 Documentation=man:systemd-oomd.service(8)
13 DefaultDependencies=no
14 Before=sockets.target shutdown.target
15 Conflicts=shutdown.target
16 ConditionControlGroupController=v2
17 ConditionControlGroupController=memory
18 ConditionPathExists=/proc/pressure/cpu
19 ConditionPathExists=/proc/pressure/io
20 ConditionPathExists=/proc/pressure/memory
21
22 [Socket]
23 ListenStream=/run/systemd/oom/io.system.ManagedOOM
24 SocketMode=0666
25
26 [Install]
27 WantedBy=sockets.target