Merge pull request #72931 from Ma27/restart-dhcp-on-exit-hook-change

nixos/dhcpcd: restart dhcpcd if exit hook changed
This commit is contained in:
Maximilian Bosch 2020-02-02 18:33:34 +01:00 committed by GitHub
commit c2d2c2d0ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,8 @@ in
before = [ "network-online.target" ];
after = [ "systemd-udev-settle.service" ];
restartTriggers = [ exitHook ];
# Stopping dhcpcd during a reconfiguration is undesirable
# because it brings down the network interfaces configured by
# dhcpcd. So do a "systemctl restart" instead.