Bug 650879

Summary: Missing newline makes /etc/cron.d/novell.ntp-synchronize not work
Product: [openSUSE] openSUSE 11.3 Reporter: Dan Cobra <dcobra>
Component: YaST2Assignee: Peter Varkoly <varkoly>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dan Cobra 2010-11-03 04:09:46 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10

After selecting "Synchronize without Daemon" on the YaST2 "Advanced NTP Configuration", I noticed my notebook's clock was not being correctly synchronized. The problem turned out to be a missing newline at the end of

-*/5 * * * * root /etc/init.d/ntp ntptimeset &>/dev/null

in /etc/cron.d/novell.ntp-synchronize. I presume this file is created by YaST2, since "rpm -f" says it is not owned by any package.

Adding the newline fixed the problem and the clock is now properly synchronized every five minutes.


Reproducible: Always

Steps to Reproduce:
1. Select "Synchronize without Daemon" on the YaST2 "Advanced NTP Configuration".

Actual Results:  
The clock is not synchronized.

Expected Results:  
The clock should be synchronized by cron every so many minutes (five, by default).

Besides selecting "Synchronize without Daemon", my only other action was to add NTP server br.pool.ntp.org, though that probably has nothing to do with the missing newline.
Comment 3 Peter Varkoly 2010-11-12 06:49:59 UTC
Fixed for stable and 11.3