summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2017-04-16 20:10:44 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-04-16 20:10:44 +0200
commitd2e46b9f70219086ebac1813a7322b45fd3ef2cd (patch)
tree1a6429aa54cf59cc09e60866bce54e061671c318 /nixos
parent7849bfc5a0fbf156169003c11c60cef0848f0295 (diff)
dhcpcd service: clear exit code of exitHook (#24909)
* dhcpcd: clear exit code of exitHook * dhcpcd: restart ntp server in oneshot in exit-hook
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index 7eeceb7407c6..cdba14be21f0 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -71,8 +71,7 @@ let
# anything ever again ("couldn't resolve ..., giving up on
# 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 try-reload-or-restart ntpd.service openntpd.service || true
fi
${cfg.runHook}