udev.service 969 B

123456789101112131415161718192021222324252627282930
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=udev Kernel Device Manager
  9. Documentation=man:systemd-udevd.service(8) man:udev(7)
  10. DefaultDependencies=no
  11. Wants=systemd-udevd-control.socket systemd-udevd-kernel.socket
  12. After=systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-sysusers.service
  13. Before=sysinit.target
  14. ConditionPathIsReadWrite=/sys
  15. [Service]
  16. Type=notify
  17. OOMScoreAdjust=-1000
  18. Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
  19. Restart=always
  20. RestartSec=0
  21. ExecStart=/lib/systemd/systemd-udevd
  22. KillMode=mixed
  23. WatchdogSec=3min
  24. TasksMax=infinity
  25. MountFlags=shared
  26. MemoryDenyWriteExecute=yes
  27. RestrictRealtime=yes
  28. RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6