From bae5faa82d6baf5b7132496eedefe30084c9667c Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 4 Feb 2015 17:33:14 -0800 Subject: [PATCH] nixos/dhcpd: Also try restarting openntpd as it suffers the same dns resolution problem --- nixos/modules/services/networking/dhcpcd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 1ad8cbae15cf..0430d31b99a7 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