]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: introduce systemd-udevd-varlink.socket 35721/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Dec 2024 22:07:50 +0000 (07:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Jan 2025 11:31:15 +0000 (20:31 +0900)
Co-authored-by: David Tardon <dtardon@redhat.com>
man/rules/meson.build
man/systemd-udevd.service.xml
man/udevadm.xml
units/initrd-udevadm-cleanup-db.service
units/meson.build
units/systemd-udev-trigger.service
units/systemd-udevd-varlink.socket [new file with mode: 0644]
units/systemd-udevd.service.in

index d281842396435423cd2f449161c2e2b5401337f7..4fe9ca17b834e7e8b9651cc3a17a1724d200781d 100644 (file)
@@ -1143,7 +1143,8 @@ manpages = [
   '8',
   ['systemd-udevd',
    'systemd-udevd-control.socket',
-   'systemd-udevd-kernel.socket'],
+   'systemd-udevd-kernel.socket',
+   'systemd-udevd-varlink.socket'],
   ''],
  ['systemd-update-done.service', '8', ['systemd-update-done'], ''],
  ['systemd-update-utmp.service',
index c781765e1cf80f73e3923519373cf38f94269d1a..ad0be5bdab27e47624e87f5ef11f0b1c69fabbb5 100644 (file)
@@ -20,6 +20,7 @@
     <refname>systemd-udevd.service</refname>
     <refname>systemd-udevd-control.socket</refname>
     <refname>systemd-udevd-kernel.socket</refname>
+    <refname>systemd-udevd-varlink.socket</refname>
     <refname>systemd-udevd</refname>
     <refpurpose>Device event managing daemon</refpurpose>
   </refnamediv>
@@ -28,6 +29,7 @@
     <para><filename>systemd-udevd.service</filename></para>
     <para><filename>systemd-udevd-control.socket</filename></para>
     <para><filename>systemd-udevd-kernel.socket</filename></para>
+    <para><filename>systemd-udevd-varlink.socket</filename></para>
 
     <cmdsynopsis>
       <command>/usr/lib/systemd/systemd-udevd</command>
index 8923bc70fe2a6ed4bd00573b43ac32a267dff9e6..13cf106d876056037916c25956d4d1bc2c9eefd5 100644 (file)
             Note that <filename>systemd-udevd.service</filename> contains
             <option>Restart=always</option> and so as a result, this option restarts systemd-udevd.
             If you want to stop <filename>systemd-udevd.service</filename>, please use the following:
-            <programlisting>systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service</programlisting>
+            <programlisting>systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd-varlink.socket systemd-udevd.service</programlisting>
             </para>
           </listitem>
         </varlistentry>
index bc444736fdfaed0701ec7ef76d4de1b9ff6be5fb..6c0a1e16ae6473cc43ba12cc234a0f716c0d8a1e 100644 (file)
@@ -11,8 +11,8 @@
 Description=Cleanup udev Database
 DefaultDependencies=no
 AssertPathExists=/etc/initrd-release
-Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
-After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
+Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd-varlink.socket systemd-udev-trigger.service systemd-udev-settle.service
+After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd-varlink.socket systemd-udev-trigger.service systemd-udev-settle.service
 Before=initrd-switch-root.target
 
 [Service]
index f6d661da9751c0816c34e6b758b3a0962432f48b..805991dfe494364862c220f01f62e9d62770131a 100644 (file)
@@ -732,6 +732,10 @@ units = [
           'file' : 'systemd-udevd-kernel.socket',
           'symlinks' : ['sockets.target.wants/'],
         },
+        {
+          'file' : 'systemd-udevd-varlink.socket',
+          'symlinks' : ['sockets.target.wants/'],
+        },
         {
           'file' : 'systemd-udevd.service.in',
           'symlinks' : ['sysinit.target.wants/'],
index cb1e4f9fea55765ea0f23fd48b18a454f3264893..0ea1a4bd49a6a73bfaf8fadf523378bcf78f377b 100644 (file)
@@ -12,7 +12,7 @@ Description=Coldplug All udev Devices
 Documentation=man:udev(7) man:systemd-udevd.service(8)
 DefaultDependencies=no
 Wants=systemd-udevd.service
-After=systemd-udevd-kernel.socket systemd-udevd-control.socket
+After=systemd-udevd-kernel.socket systemd-udevd-control.socket systemd-udevd-varlink.socket
 Before=sysinit.target
 ConditionPathIsReadWrite=/sys
 
diff --git a/units/systemd-udevd-varlink.socket b/units/systemd-udevd-varlink.socket
new file mode 100644 (file)
index 0000000..94fee15
--- /dev/null
@@ -0,0 +1,22 @@
+#  SPDX-License-Identifier: LGPL-2.1-or-later
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=udev Varlink Socket
+Documentation=man:systemd-udevd-varlink.socket(8) man:udev(7)
+DefaultDependencies=no
+Before=sockets.target
+ConditionPathIsReadWrite=/sys
+
+[Socket]
+Service=systemd-udevd.service
+ListenStream=/run/udev/io.systemd.Udev
+FileDescriptorName=varlink
+SocketMode=0600
+RemoveOnStop=yes
index f4a44820880daaad11f98e1139e66c805860c250..13ec7088daaccb6cb84540e4614d71ef12193541 100644 (file)
@@ -23,7 +23,7 @@ DelegateSubgroup=udev
 Type=notify-reload
 # Note that udev will reset the value internally for its workers
 OOMScoreAdjust=-1000
-Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
+Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd-varlink.socket
 Restart=always
 RestartSec=0
 ExecStart={{LIBEXECDIR}}/systemd-udevd