nixos/dhcpd: Also try restarting openntpd as it suffers the same dns resolution problem

This commit is contained in:
William A. Kennington III 2015-02-04 17:33:14 -08:00
parent 43d8b1ef3c
commit bae5faa82d

View file

@ -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