mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-09 12:05:50 +03:00
nixos/dhcpd: Also try restarting openntpd as it suffers the same dns resolution problem
This commit is contained in:
parent
43d8b1ef3c
commit
bae5faa82d
1 changed files with 3 additions and 1 deletions
|
@ -68,8 +68,10 @@ let
|
||||||
# will actually do something: if ntpd cannot resolve the
|
# will actually do something: if ntpd cannot resolve the
|
||||||
# server hostnames in its config file, then it will never do
|
# server hostnames in its config file, then it will never do
|
||||||
# anything ever again ("couldn't resolve ..., giving up on
|
# 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 ntpd.service
|
||||||
|
${config.systemd.package}/bin/systemctl try-restart openntpd.service
|
||||||
|
|
||||||
${config.systemd.package}/bin/systemctl start ip-up.target
|
${config.systemd.package}/bin/systemctl start ip-up.target
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue