diff options
author | Christian Kögler <ck3d@gmx.de> | 2017-04-16 20:10:44 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-04-16 20:10:44 +0200 |
commit | d2e46b9f70219086ebac1813a7322b45fd3ef2cd (patch) | |
tree | 1a6429aa54cf59cc09e60866bce54e061671c318 /nixos/modules/services/networking/dhcpcd.nix | |
parent | 7849bfc5a0fbf156169003c11c60cef0848f0295 (diff) | |
download | nixpkgs-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.nix | 3 |
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} |