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:
parent
7849bfc5a0
commit
d2e46b9f70
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue