if WITH_SYSTEMD
systemdsystemunit_DATA = \
- init/udev.socket \
+ init/udev-control.socket \
+ init/udev-kernel.socket \
init/udev.service \
init/udev-trigger.service \
init/udev-settle.service
-EXTRA_DIST += init/udev.socket
+EXTRA_DIST += \
+ init/udev-control.socket \
+ init/udev-kernel.socket
systemd-install-hook:
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
- ln -sf ../udev.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/udev.socket
+ ln -sf ../udev-control.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/udev-control.socket
+ ln -sf ../udev-kernel.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/udev-kernel.socket
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants
ln -sf ../udev.service $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants/udev.service
ln -sf ../udev-trigger.service $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants/udev-trigger.service
[Unit]
Description=udev Kernel Device Manager
-Wants=udev.socket
-After=udev.socket
+Wants=udev-control.socket udev-kernel.socket
+After=udev-control.socket udev-kernel.socket
Before=basic.target
DefaultDependencies=no
[Service]
Type=notify
OOMScoreAdjust=-1000
+Sockets=udev-control.socket udev-kernel.socket
Restart=on-failure
ExecStart=@sbindir@/udevd
+++ /dev/null
-[Unit]
-Description=udev Kernel Device Manager Sockets
-DefaultDependencies=no
-
-[Socket]
-ReceiveBuffer=134217728
-ListenSequentialPacket=@/org/kernel/udev/udevd
-ListenNetlink=kobject-uevent 1