[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntpdate: socket in use



Once upon a time, I heard Aaron Solochek say

> Well, I've been trying to update my clock to the local kerberos servers,
> but it doesn't work.
> 
> leko:/home/aarons#rdate kerberos.andrew.cmu.edu
> rdate: Could not connect socket: Connection refused
> leko:/home/aarons#ntpdate kerberos.andrew.cmu.edu
>  8 Apr 00:22:26 ntpdate[583]: the NTP socket is in use, exiting
> leko:/home/aarons#
> 
> 
> What could be causing this?

Very good to provide the foolowing data.
> leko:/home/aarons#ps aux
[snip]
> root       194  0.0  0.2  1548 1540 ?        SL   Apr07   0:00
> /usr/sbin/ntpd
  ^^^^^^^^^^^^^^

You should have stop ntp by /etc/init.d/ntp stop before use ntpdate to
syncronize the clock. Then /etc/init.d/ntp start after you sync you
clock with /etc/init.d/ntpdate start.

Chanop

-- 
,-----------------------------------------------------------------------------.
| Chanop Silpa-Anan                          <chanop@writeme.com>             |
| Australian National University                                              |
| Tel. +61 2 6279 8826, +61 2 6279 8837 (office hour)                         |
|      +61 2 6249 5240 (home +voice mail)                                     |
|           Debian GNU/BSD            ICQ uin 11366301                        |
`-----------------------------------------------------------------------------'

Attachment: pgpZgY3r0_W5M.pgp
Description: PGP signature


Reply to: