Bug 806387

Summary: ntpd does not start at boot
Product: [Fedora] Fedora Reporter: Zdenek Wagner <zdenek.wagner>
Component: ntpAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: mlichvar, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-23 16:56:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Wagner 2012-03-23 15:39:36 UTC
Description of problem:
ntpd does not start at boot although I asked time sychronization in anaconda and since ntpstat reported timeout, I issued the following command as given in the documentation:

systemctl enable ntpd.service


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Issue the following command after boot:
systemctl status ntpd.service
  
Actual results:
ntpd.service - Network Time Service
          Loaded: loaded (/lib/systemd/system/ntpd.service; enabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/ntpd.service


Expected results:
ntpd.service - Network Time Service
          Loaded: loaded (/lib/systemd/system/ntpd.service; enabled)
          Active: active (running) since Fri, 23 Mar 2012 16:01:01 +0100; 3min 37s ago
        Main PID: 1668 (ntpd)
          CGroup: name=systemd:/system/ntpd.service
                  └ 1668 /usr/sbin/ntpd -n -u ntp:ntp -g


Additional info:
As a workaround I check its status in cron.hourly and if not running I start it by

systemctl start ntpd.service

Comment 1 Miroslav Lichvar 2012-03-23 15:47:01 UTC
Any chance the chrony service is also enabled? It's the default NTP service in Fedora 16 and it conflicts with ntpd, so only one can be enabled. To disable chrony:

systemctl disable chronyd.service

Comment 2 Zdenek Wagner 2012-03-23 16:49:01 UTC
Thanks for the comment. Chrony is running. Unfortunately there is no deployment guide for Fedora 16 and Google finds information on starting ntpd in the deployment guide of Fedora 15. I missed the note in the Release notes. I have read the chrony manual and will use it instead of ntpd.