HowTo Setup ntpd

  1. sudo yum install ntp -y
  2. /usr/lib/systemd/system/ntdp.service
    [Unit]
    Description=Network Time Service
    After=syslog.target ntpdate.service sntp.service
    [Service]
    Type=forking
    EnvironmentFile=-/etc/sysconfig/ntpd
    ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS
    PrivateTmp=true
    [Install]
    WantedBy=multi-user.target
    
  3. /etc/sysconfig/ntpd
    OPTIONS="-g -q"
  4. /etc/systemd/system/andor.service
    After=network-online.target ntpd.service