[Ma-linux] Virtual machine time sync after host resume

John Jasen jjasen at realityfailure.org
Thu Nov 26 11:46:53 EST 2009


Przemek Klosowski wrote:
> On 11/24/2009 09:31 PM, Joseph S D Yao wrote:
>> I haven't done anything with suspend/resume besides disabling it [;-)],
>> but can't you put a script in something like /etc/acpi/resume.d to run
>> ntpdate?
> 
> That would work but ntpdate won't run unless you turn off ntpd
> (they use the same socket), so the script has to be like this:
> 
> /etc/init.d/ntpd stop
> ntpdate 0.fedora.pool.ntp.org
> /etc/init.d/ntpd start

ntpdate is allegedly depreciated. I think ntpd -gq is the replacement. I
don't know immediately if you need to stop the running ntpd instance
first, but from quick testing, it seems so.

-- 
-- John E. Jasen (jjasen at realityfailure.org)
-- "Deserve Victory." -- Terry Goodkind, Naked Empire


More information about the Ma-linux mailing list