mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Let's make our networkd sockets recognizable purely by name. It hink already for debugging it's a good idea to always set socket names, in particular for services that have multiple sockets they listen on. This adds a name to the rtnl socket, which so far missed one. Note that the C code won't look for it, for compat with older versions, but at least things are a bit more debuggable.
26 lines
709 B
SYSTEMD
26 lines
709 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=Network Management Netlink Socket
|
|
Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
|
|
ConditionCapability=CAP_NET_ADMIN
|
|
DefaultDependencies=no
|
|
Before=sockets.target shutdown.target
|
|
Conflicts=shutdown.target
|
|
|
|
[Socket]
|
|
ReceiveBuffer=128M
|
|
ListenNetlink=route 1361
|
|
FileDescriptorName=rtnl
|
|
PassPacketInfo=yes
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|