diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-02-02 18:33:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 18:33:34 +0100 |
commit | c2d2c2d0cabea4dd4be9f51a0be9469d886a18be (patch) | |
tree | d7136f618a0197cde8a770af41a0e7989d8d698b /nixos/modules/services | |
parent | a89c1b543446239903ab5c38fa04edb79fed28d5 (diff) | |
parent | 51d18215095368b5ec7fb701987d4428df609467 (diff) | |
download | nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.gz nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.bz2 nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.lz nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.xz nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.zst nixlib-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.zip |
Merge pull request #72931 from Ma27/restart-dhcp-on-exit-hook-change
nixos/dhcpcd: restart dhcpcd if exit hook changed
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 6972c833cc5b..f476b147a576 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -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. |