3
0
Fork 0
forked from mirrors/nixpkgs

dhcpcd service: clear exit code of exitHook (#24909)

* dhcpcd: clear exit code of exitHook

* dhcpcd: restart ntp server in oneshot in exit-hook
This commit is contained in:
Christian Kögler 2017-04-16 20:10:44 +02:00 committed by Jörg Thalheim
parent 7849bfc5a0
commit d2e46b9f70

View file

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