From 9792b12e5355a3f2b11e579fce27a2b97646c468 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 6 Feb 2015 14:45:41 -0800 Subject: nixos/openntpd: Don't start until we have networking This attempts to fix an issues where ntp is unable to resolve hostnames because it came up before local nameservers or networking. --- nixos/modules/services/networking/openntpd.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/services/networking/openntpd.nix b/nixos/modules/services/networking/openntpd.nix index ef5250888989..e53fc574fbea 100644 --- a/nixos/modules/services/networking/openntpd.nix +++ b/nixos/modules/services/networking/openntpd.nix @@ -64,6 +64,8 @@ in systemd.services.openntpd = { description = "OpenNTP Server"; wantedBy = [ "multi-user.target" ]; + wants = [ "network-online.target" ]; + after = [ "dnsmasq.service" "bind.service" "network-online.target" ]; serviceConfig.ExecStart = "${package}/sbin/ntpd -d -f ${cfgFile} ${cfg.extraOptions}"; }; }; -- cgit 1.4.1