mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
3181521f92
systemd-networkd.socket can re-start systemd-networkd.service in shutdown and by doing this even stop shutdown.target leaving the system in halfway-down state. Fixes #4955.
25 lines
682 B
SYSTEMD
25 lines
682 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 Service 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
|
|
PassPacketInfo=yes
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|