summary refs log tree commit diff
path: root/nixos/modules/services/networking/dhcpcd.nix
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/modules/services/networking/dhcpcd.nix
parent7849bfc5a0fbf156169003c11c60cef0848f0295 (diff)
downloadnixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar.gz
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar.bz2
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar.lz
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar.xz
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.tar.zst
nixpkgs-d2e46b9f70219086ebac1813a7322b45fd3ef2cd.zip
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/modules/services/networking/dhcpcd.nix')
-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 7eeceb7407c..cdba14be21f 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}