summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-02-04 17:33:14 -0800
committerWilliam A. Kennington III <william@wkennington.com>2015-02-04 17:33:14 -0800
commitbae5faa82d6baf5b7132496eedefe30084c9667c (patch)
treed58862fb16ad6090c83281636c2d0910800fa5b2 /nixos
parent43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e (diff)
downloadnixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar.gz
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar.bz2
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar.lz
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar.xz
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.tar.zst
nixpkgs-bae5faa82d6baf5b7132496eedefe30084c9667c.zip
nixos/dhcpd: Also try restarting openntpd as it suffers the same dns resolution problem
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index 1ad8cbae15c..0430d31b99a 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -68,8 +68,10 @@ let
           # will actually do something: if ntpd cannot resolve the
           # server hostnames in its config file, then it will never do
           # anything ever again ("couldn't resolve ..., giving up on
-          # it"), so we silently lose time synchronisation.
+          # it"), so we silently lose time synchronisation. This also
+          # applies to openntpd.
           ${config.systemd.package}/bin/systemctl try-restart ntpd.service
+          ${config.systemd.package}/bin/systemctl try-restart openntpd.service
 
           ${config.systemd.package}/bin/systemctl start ip-up.target
       fi