From 5a6583ecb4f3ee398be52c5d6ae3633f8a55b98b Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 25 May 2011 00:56:48 +0200 Subject: [PATCH] systemd: split socket file --- Makefile.am | 10 +++++++--- init/udev.service.in | 5 +++-- init/udev.socket | 8 -------- 3 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 init/udev.socket diff --git a/Makefile.am b/Makefile.am index 1537d56..16127b7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/init/udev.service.in b/init/udev.service.in index e85974a..3692fb3 100644 --- a/init/udev.service.in +++ b/init/udev.service.in @@ -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 index 07fb01c..0000000 --- a/init/udev.socket +++ /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 -- 2.7.4