mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
670ea2df51
setupntp falls back from chrony to ntpd when chronyd is absent, but not the other way. A node told --backend ntpd, or --use-ntpd, that has only chrony execs setupntp.traditional, which writes /etc/ntp.conf and calls startservice ntpserver for a daemon that is not there. The node ends with no running time daemon and a warning in the log. The ntpd branch of the backend selection now probes ntpd. When ntpd is absent and chronyd and systemctl are both present, setupntp uses chrony and logs the change, the same way the chrony branch already does. makentp_ntp_deps.t covers both directions. The two ntpd cases fail without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>