Chrony Howto (1)

From RaySoft

Installation

Update the system:

dnf updateinfo
dnf -y upgrade

Install the required packages:

dnf -y install 'chrony'

Configuration

Edit the configuration files:

Start the service & get its status:

systemctl start 'chronyd.service'
systemctl status 'chronyd.service'

Observe its logs:

journalctl --unit='chronyd.service' --since 'today' --follow

Enable the service & check it:

systemctl enable 'chronyd.service'
systemctl list-unit-files | grep 'chronyd.service'

Open the firewall ports:

firewall-cmd --add-service='ntp' --permanent
firewall-cmd --reload
firewall-cmd --list-all

Test

Observe its open ports:

lsof -a -c 'chronyd' -i -n -P

Output:

COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
chronyd 16409 chrony    5u  IPv4 247750      0t0  UDP 127.0.0.1:323
chronyd 16409 chrony    6u  IPv4 247751      0t0  UDP *:123

Display system time information & information about current sources

chronyc tracking
chronyc sources