]> err.no Git - systemd/commitdiff
systemd: split socket file
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 24 May 2011 22:56:48 +0000 (00:56 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 24 May 2011 22:56:48 +0000 (00:56 +0200)
Makefile.am
init/udev.service.in
init/udev.socket [deleted file]

index 1537d56ebe3bbd2686710098c2781e1a65d757f0..16127b722ebd8658e683f357316eff7c2f90e218 100644 (file)
@@ -130,16 +130,20 @@ sharepkgconfig_DATA = udev/udev.pc
 
 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
index e85974a57575c7e1ae41a8e43fdee05dfcc90edf..3692fb317e2075d7b65453e5799f3ff68964bab1 100644 (file)
@@ -1,12 +1,13 @@
 [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
diff --git a/init/udev.socket b/init/udev.socket
deleted file mode 100644 (file)
index 07fb01c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=udev Kernel Device Manager Sockets
-DefaultDependencies=no
-
-[Socket]
-ReceiveBuffer=134217728
-ListenSequentialPacket=@/org/kernel/udev/udevd
-ListenNetlink=kobject-uevent 1