Enable and Start the Service

About this task

Perform the following steps as user root on the machine:

Procedure

  1. Configure the service to start at boot time by using the following command:
    
    chkconfig ntpd on
    
    
    
    
  2. Start the service immediately by using the following command:
    
    service ntpd start
    
    
    
    
  3. Verify that the service started and contacted a server by using the following command:
    
    ntpq -np
    
    
    
    
  4. View log messages for the NTP daemon in file /var/log/messages.