On Mon, May 03, 2004 at 08:40:02PM +0300, Dan Fruehauf wrote:
> I've been googling for a while and couldnt find it, so here i am.
> for some reasons i prefer not to go into, i have to synchronize clocks between 
> machines where one machine has it's clock on GMT and the other doesnt (it's 
> clock is GMT + x hours forward / backward).
> my question is, is it possible to configure ntpd (or any other ntp client) to 
> fetch the time from some distant ntp server and to apply an offset (like -1 
> hour, -2 hours, or something similar) on the time it recieves from the 
> server?
> 


  Here is what I might have tried on the distro I am familiar with, 
which is Debian:

1. The machine which has its clock set to GMT just run an ntp client as
   usual.
2. On the other machine I would still run an ntp client as before.
   However I would also do the following:
   2.1. Tell the machine its clock is not set to GMT by putting the
   appropriate value in /etc/default/rcS. I am not sure who actually
   uses it. 
   2.2 Make sure hwclock (from the hwtools?) doesn't use a GMT clock. I
   think that this is related to 2.1.
   2.3 Set the time zone of the machine to the desired GMT +/- x hours.

  Disclaimer: taken of the top of my head, haven't tried that, not sure
about the details, YMMV, assume that you can set the timezone of the
machine as you wish, and so forth.
-- 
"If you have an apple and I have  an apple and we  exchange apples then
you and I will still each have  one apple. But  if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw     (sent by  shaulk @ actcom . net . il)

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to