Bug 24281

Summary: halt script breaks RTC set to UTC
Product: [Retired] Red Hat Raw Hide Reporter: Stefan Sorensen <sts>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-18 11:21:41 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 Stefan Sorensen 2001-01-18 11:21:38 UTC
/etc/init.d/halt contains the line

  runcmd "Syncing hardware clock to system time" /sbin/hwclock --systohc

This writes the local time to the hardware RTC disregarding that it might 
be set to UTC, giving a clock scew on each shutdown.

A fix would be to do the same as in the rc.sysinit script (and ofcourse
replace --hctosys with --systohc).

Comment 1 Bill Nottingham 2001-01-29 20:16:31 UTC
This is fixed in 5.55-1 or so.