Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Add support for chrony on el8 systems similar to ntpd for el7

FusedT shared this idea 3 years ago
Open Discussion

/usr/local/cpanel/scripts/rdate that's invoked during upcp needs to be updated to support chrony, which is the only supported time sync util on el8-based systems. Thanks.


if ( ( $sysinfo->{'rpm_dist'} eq 'centos' || $sysinfo->{'rpm_dist'} eq 'rhel' || $sysinfo->{'rpm_dist'} eq 'cloudlinux' ) && $sysinfo->{'rpm_dist_ver'} == 7 ) {
$pid = _detect_systemd_managed_ntpd();

Replies (2)

photo
1

On CentOS, CloudLinux, and AlmaLinux version 8 systems, scripts/rdate calls /usr/local/cpanel/bin/rdate to sync the system time. Neither chrony nor ntp are needed.

photo
1

Correct, but we BLOCK outbound traffic and don't need rdate. rdate script needs to be updated to skip its check if chrony is installed, like it's doing currently when there's ntpd installed.

photo
1

Ok, that makes sense. You're asking for us to add detection of chrony to scripts/rdate on CentOS, Alma, etc version 8 systems.

photo
1

Yes, we do. Otherwise it takes 2 mins for it to timeout during nightly upcp. Thanks.

photo
Leave a Comment
 
Attach a file