Skip to content

Commit 1f21fac

Browse files
dustymabeharaldh
authored andcommitted
fix(network-manager): nm-run.service: don't kill forked processes
If teaming is set up via NetworkManager we don't want systemd to take down the userspace teamd process when NetworkManager quits. `KillMode=process` will allow it to leave those processes behind. This is fallout from the change to run NetworkManager via systemd (c17c5b7). With `KillMode=process` we get something like: ``` sh-5.1# journalctl -u nm-run -o cat | tail <info> [1618411262.7030] quitting now that startup is complete <info> [1618411262.7030] device (team0): carrier: link connected <info> [1618411262.7033] device (team0): team port ens2 was released <info> [1618411262.7033] device (team0): team port ens3 was released <info> [1618411262.7033] manager: NetworkManager state is now CONNECTED_SITE <info> [1618411262.7034] exiting (success) nm-run.service: Deactivated successfully. nm-run.service: Unit process 476 (teamd) remains running after unit stopped. Finished nm-run.service. ```
1 parent 4fbccde commit 1f21fac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules.d/35network-manager/nm-run.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ ConditionPathExistsGlob=|/etc/sysconfig/network-scripts/ifcfg-*
2525
#run the script and wait before it finishes
2626
Type=oneshot
2727
ExecStart=/usr/sbin/NetworkManager --configure-and-quit=initrd --no-daemon
28+
#don't kill forked off processes (for example: teamd for teaming)
29+
KillMode=process
2830

2931
[Install]
3032
WantedBy=initrd.target

0 commit comments

Comments
 (0)