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
|
# anything ever again ("couldn't resolve ..., giving up on
|
||||||
# it"), so we silently lose time synchronisation. This also
|
# it"), so we silently lose time synchronisation. This also
|
||||||
# applies to openntpd.
|
# applies to openntpd.
|
||||||
${config.systemd.package}/bin/systemctl try-restart ntpd.service
|
${config.systemd.package}/bin/systemctl try-reload-or-restart ntpd.service openntpd.service || true
|
||||||
${config.systemd.package}/bin/systemctl try-restart openntpd.service
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${cfg.runHook}
|
${cfg.runHook}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user