Nowadays, varlink is used to control systemd-udevd. Let's drop the legacy socket. Note, the existence of /run/udev/control socket is widely used in both our code and external projects. Also, the dependency to systemd-udevd-control.socket is widely used in many projects. Hence, we need to create a symlink to the socket file and .socket unit file.
27 lines
809 B
SYSTEMD
27 lines
809 B
SYSTEMD
# 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
|
|
Symlinks=/run/varlink/registry/io.systemd.Udev /run/udev/control
|
|
FileDescriptorName=varlink
|
|
SocketMode=0644
|
|
RemoveOnStop=yes
|
|
DeferTrigger=yes
|
|
XAttrEntryPoint=user.varlink=entrypoint
|
|
XAttrListen=user.varlink=listen
|