mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
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.
This commit is contained in:
parent
67f28ac1a9
commit
9792b12e53
|
@ -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}";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue