ntpdate

Niall Sheridan niall at blacknight.ie
Sun Oct 31 18:21:44 UTC 2004


On Sun, 2004-10-31 at 20:14 +0200, Johan wrote:
> On Sun, 31 Oct 2004 17:26:16 +0000
> Niall Sheridan <niall at blacknight.ie> wrote:
> > 
> > ntpd is the ntp server. it runs as a local service to keep time
> > synchronized, and can provide this function to other clients e.g.
> > running ntpdate. It runs on port 123.
> > The problem arises when ntpd is running and you try to run ntpdate, as
> > ntpdate attempts to use port 123 also. Basically, you cannot run both at
> > the same time.
> > run `netstat -lnup' as root and attach the output.
> > 
> *****************
> # netstat -lnup
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
> udp        0      0 127.0.0.1:111           0.0.0.0:*                          4640/portmap
> udp        0      0 192.168.1.2:123         0.0.0.0:*                          5533/ntpd
> udp        0      0 127.0.0.1:123           0.0.0.0:*                          5533/ntpd
> udp        0      0 0.0.0.0:123             0.0.0.0:*                          5533/ntpd
> udp6       0      0 :::123                  :::*                               5533/ntpd
> 
> Thanks
> 
There we go :)
You do indeed have ntpd running. In ubuntu this is provided by the
ntp-server package. You cannot use both. ntpd will keep your clock
constantly in sync, while ntpdate will only sync when you run it. Pick
one, remove the other.
Niall

> -- 
> Johan Sch
> Registered linux user #333034
> May this be a good day for learning

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041031/3dd33159/attachment.sig>


More information about the ubuntu-users mailing list