]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-networkd.socket: Add conflict with shutdown.target (#19348)
authorsverdlin <sverdlin@users.noreply.github.com>
Mon, 19 Apr 2021 02:25:33 +0000 (04:25 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 02:25:33 +0000 (11:25 +0900)
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.

units/systemd-networkd.socket

index aa9ad7e02c3e85a881e83208422d72d734351ca1..2d8d1c3b9107a1e38ffc18acf3d26100e09c9e9d 100644 (file)
@@ -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