public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] ntp-client doesn't start
@ 2006-11-05 15:55 John Blinka
  2006-11-05 22:55 ` Roger Mason
  2006-11-06 18:52 ` [gentoo-user] " reader
  0 siblings, 2 replies; 6+ messages in thread
From: John Blinka @ 2006-11-05 15:55 UTC (permalink / raw
  To: gentoo-user

Hi,

I have a very old Dell P150ST laptop that I try to maintain Gentoo on. 
Every time I boot it,
it complains "ERROR: cannot start ntp-client as net.eth0 could not be
started".

The laptop is old enough that the ethernet connection is by a Xircom
pcmcia card, and this
works well except for ntp-client.  The claim that "net.eth0 could not be
started" puzzles
me since, after the machine boots, ifconfig gives

eth0      Link encap:Ethernet  HWaddr 00:10:A4:FE:EC:4C 
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:445 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:70632 (68.9 Kb)  TX bytes:8288 (8.0 Kb)
          Interrupt:3 Base address:0x300

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3207 (3.1 Kb)  TX bytes:3207 (3.1 Kb)

Thinking that the error message means that ntp-client is being started
before eth0 is completely
configured, I have followed the advice in
http://gentoo-wiki.com/HOWTO_NTP and modified my
depend() in /etc/init.d/ntp-client to

depend() {
        before cron portmap
        need net
        after net.eth0
        use dns logger
}

but this has had no effect.

I would appreciate any thoughts on what the error message means, and how
to get ntp-client
working.

Thanks,

John Blinka
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] ntp-client doesn't start
  2006-11-05 15:55 [gentoo-user] ntp-client doesn't start John Blinka
@ 2006-11-05 22:55 ` Roger Mason
  2006-11-06 10:53   ` John Blinka
  2006-11-06 18:52 ` [gentoo-user] " reader
  1 sibling, 1 reply; 6+ messages in thread
From: Roger Mason @ 2006-11-05 22:55 UTC (permalink / raw
  To: gentoo-user

John Blinka <jblinka@neo.rr.com> writes:

> The laptop is old enough that the ethernet connection is by a Xircom
> pcmcia card, and this
> works well except for ntp-client.  The claim that "net.eth0 could not be
> started" puzzles
> me since, after the machine boots, ifconfig gives
>
> eth0      Link encap:Ethernet  HWaddr 00:10:A4:FE:EC:4C 
>           inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0

I may be leading you astray, but that IP address looks like one for a private net.  Is ntp-client
looking on that private net for a time-server?

Roger Mason

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] ntp-client doesn't start
  2006-11-05 22:55 ` Roger Mason
@ 2006-11-06 10:53   ` John Blinka
  0 siblings, 0 replies; 6+ messages in thread
From: John Blinka @ 2006-11-06 10:53 UTC (permalink / raw
  To: gentoo-user

Roger Mason wrote:
>
> I may be leading you astray, but that IP address looks like one for a private net.  Is ntp-client
> looking on that private net for a time-server?
>   
It is a private net, but ntp-client is looking at pool.ntp.org for the
time server.

John
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user]  Re: ntp-client doesn't start
  2006-11-05 15:55 [gentoo-user] ntp-client doesn't start John Blinka
  2006-11-05 22:55 ` Roger Mason
@ 2006-11-06 18:52 ` reader
  2006-11-06 21:19   ` John Blinka
  2006-11-06 21:26   ` Bo Ørsted Andresen
  1 sibling, 2 replies; 6+ messages in thread
From: reader @ 2006-11-06 18:52 UTC (permalink / raw
  To: gentoo-user

John Blinka <jblinka@neo.rr.com> writes:

> I have a very old Dell P150ST laptop that I try to maintain Gentoo on. 
> Every time I boot it,
> it complains "ERROR: cannot start ntp-client as net.eth0 could not be
> started".

One way that will probably work is to start ntp-client from
/etc/conf.d/local-start

local-start is the very last thing called during a bootup so if timing
is the problem this would be a way to skirt around it.

Just put whatever commands start ntp-client in /etc/conf.d/local-start
and see if it works.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Re: ntp-client doesn't start
  2006-11-06 18:52 ` [gentoo-user] " reader
@ 2006-11-06 21:19   ` John Blinka
  2006-11-06 21:26   ` Bo Ørsted Andresen
  1 sibling, 0 replies; 6+ messages in thread
From: John Blinka @ 2006-11-06 21:19 UTC (permalink / raw
  To: gentoo-user

reader@newsguy.com wrote:
> One way that will probably work is to start ntp-client from
> /etc/conf.d/local-start
>
> local-start is the very last thing called during a bootup so if timing
> is the problem this would be a way to skirt around it.
>
> Just put whatever commands start ntp-client in /etc/conf.d/local-start
> and see if it works.
>
>   
Same idea occurred to me.  It does work.

John
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Re: ntp-client doesn't start
  2006-11-06 18:52 ` [gentoo-user] " reader
  2006-11-06 21:19   ` John Blinka
@ 2006-11-06 21:26   ` Bo Ørsted Andresen
  1 sibling, 0 replies; 6+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-06 21:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

On Monday 06 November 2006 19:52, reader@newsguy.com wrote:
> John Blinka <jblinka@neo.rr.com> writes:
> > I have a very old Dell P150ST laptop that I try to maintain Gentoo on.
> > Every time I boot it,
> > it complains "ERROR: cannot start ntp-client as net.eth0 could not be
> > started".
>
> One way that will probably work is to start ntp-client from
> /etc/conf.d/local-start
>
> local-start is the very last thing called during a bootup so if timing
> is the problem this would be a way to skirt around it.
>
> Just put whatever commands start ntp-client in /etc/conf.d/local-start
> and see if it works.

Actually I have this in /etc/conf.d/net:

postup() {
    [...]

    /etc/init.d/ntp-client start >> /var/log/net.log
    return 0
}

postdown() {
    [...]

    /etc/init.d/ntp-client stop >> /var/log/net.log
    return 0
}

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-06 21:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-05 15:55 [gentoo-user] ntp-client doesn't start John Blinka
2006-11-05 22:55 ` Roger Mason
2006-11-06 10:53   ` John Blinka
2006-11-06 18:52 ` [gentoo-user] " reader
2006-11-06 21:19   ` John Blinka
2006-11-06 21:26   ` Bo Ørsted Andresen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox