]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/systemd-udevd.service.in
meson: allow WatchdogSec= in services to be configured
[thirdparty/systemd.git] / units / systemd-udevd.service.in
... / ...
CommitLineData
1# SPDX-License-Identifier: LGPL-2.1+
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]
11Description=udev Kernel Device Manager
12Documentation=man:systemd-udevd.service(8) man:udev(7)
13DefaultDependencies=no
14After=systemd-sysusers.service systemd-hwdb-update.service
15Before=sysinit.target
16ConditionPathIsReadWrite=/sys
17
18[Service]
19Type=notify
20# Note that udev also adjusts the OOM score internally and will reset the value internally for its workers
21OOMScoreAdjust=-1000
22Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
23Restart=always
24RestartSec=0
25ExecStart=@rootlibexecdir@/systemd-udevd
26ExecReload=@rootbindir@/udevadm control --reload --timeout 0
27KillMode=mixed
28TasksMax=infinity
29PrivateMounts=yes
30ProtectHostname=yes
31MemoryDenyWriteExecute=yes
32RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
33RestrictRealtime=yes
34RestrictSUIDSGID=yes
35SystemCallFilter=@system-service @module @raw-io
36SystemCallErrorNumber=EPERM
37SystemCallArchitectures=native
38LockPersonality=yes
39IPAddressDeny=any
40@SERVICE_WATCHDOG@