summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorsverdlin <sverdlin@users.noreply.github.com>2021-04-19 04:25:33 +0200
committerGitHub <noreply@github.com>2021-04-19 11:25:33 +0900
commit3181521f92ca78ab6535804fe4e176f3ac78ab79 (patch)
tree2e501f6fb0b61ef13c563b71b27b086d7c9b276c /units
parent6604fb0207ee10e8dc05d67f6fe45de0b193b5c4 (diff)
downloadsystemd-3181521f92ca78ab6535804fe4e176f3ac78ab79.tar.gz
systemd-networkd.socket: Add conflict with shutdown.target (#19348)
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.
Diffstat (limited to 'units')
-rw-r--r--units/systemd-networkd.socket3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/systemd-networkd.socket b/units/systemd-networkd.socket
index aa9ad7e02c..2d8d1c3b91 100644
--- a/units/systemd-networkd.socket
+++ b/units/systemd-networkd.socket
@@ -12,7 +12,8 @@ Description=Network Service Netlink Socket
Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
ConditionCapability=CAP_NET_ADMIN
DefaultDependencies=no
-Before=sockets.target
+Before=sockets.target shutdown.target
+Conflicts=shutdown.target
[Socket]
ReceiveBuffer=128M