]> git.ipfire.org Git - thirdparty/systemd.git/commit
timedate: Extend timeout for setting NTP
authorPhylLu <Phyllis.Lu@quantatw.com>
Wed, 11 Oct 2023 01:41:29 +0000 (09:41 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Oct 2023 15:06:16 +0000 (17:06 +0200)
commit4f10005e175bef552c8dabc08dbb6055ae6dd3a4
treebdac64f56bcf8df9df89caa1a80c194aaf1b7436
parent7ad3a370221ef51b336c189799373140b0f1a626
timedate: Extend timeout for setting NTP

One of the steps in setting up NTP is to enable/disable the
'systemd-timesyncd.service' and then perform a daemon reload.
we use an extra-long timeout for reload in timedated as same as used in
systemd daemon reload to avoiding certain situation have longer reload
times (which exceed the 25 second default timeout used for
dbus-communication), potentially leading to setting NTP failure.
src/timedate/timedatectl.c
src/timedate/timedated.c