* [gentoo-user] Init scripts waiting for deps in progress
@ 2007-01-07 17:10 Daniel Barkalow
2007-01-08 10:24 ` Uwe Thiem
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Barkalow @ 2007-01-07 17:10 UTC (permalink / raw
To: gentoo-user
I have the following set of init stuff:
net.wireless depends on ipw3945d
ntp-client depends on net
net.wireless automagically starts when the interface "wireless" appears
net.wireless is in the boot runlevel
When I boot the computer, it starts ipw3945d before net.wireless, but not
in time for the "wireless" interface to appear before it tries to start
net.wireless. Moments later, the interface appears, and it runs
net.wireless again, asynchronously, and it spends a while starting up (it
has to find the correct network, and dhcp, etc).
While net.wireless is starting up, the system synchronously starts
ntp-client, which attempts to start net.wireless; this fails (it's already
starting), and so ntp-client fails. Then the asynchronous net.wireless
finishes starting, and I have network, but no ntp-client.
Is there some way to teach start-stop-daemon that, if a dependancy fails
because it is already starting up, this means you should wait for it, not
give up? The other stuff is a bit odd, but ultimately harmless, aside from
the fact that stuff gets confused by this situation.
-Daniel
*This .sig left intentionally blank*
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Init scripts waiting for deps in progress
2007-01-07 17:10 [gentoo-user] Init scripts waiting for deps in progress Daniel Barkalow
@ 2007-01-08 10:24 ` Uwe Thiem
2007-01-08 12:56 ` Nelson, David (ED, PAR&D)
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Thiem @ 2007-01-08 10:24 UTC (permalink / raw
To: gentoo-user
On 07 January 2007 19:10, Daniel Barkalow wrote:
> I have the following set of init stuff:
>
> net.wireless depends on ipw3945d
> ntp-client depends on net
> net.wireless automagically starts when the interface "wireless" appears
> net.wireless is in the boot runlevel
>
> When I boot the computer, it starts ipw3945d before net.wireless, but not
> in time for the "wireless" interface to appear before it tries to start
> net.wireless. Moments later, the interface appears, and it runs
> net.wireless again, asynchronously, and it spends a while starting up (it
> has to find the correct network, and dhcp, etc).
>
> While net.wireless is starting up, the system synchronously starts
> ntp-client, which attempts to start net.wireless; this fails (it's already
> starting), and so ntp-client fails. Then the asynchronous net.wireless
> finishes starting, and I have network, but no ntp-client.
You didn't say which runlevel started ntp-client. Assuming it is also in your
boot runlevel, you can try to move it to your default runlevel. That way, it
will start a bit later.
Uwe
--
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
Proof of concept of a TSP solver for KDE:
http://www.SysEx.com.na/epat-0.1.tar.bz2
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [gentoo-user] Init scripts waiting for deps in progress
2007-01-08 10:24 ` Uwe Thiem
@ 2007-01-08 12:56 ` Nelson, David (ED, PAR&D)
0 siblings, 0 replies; 3+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-08 12:56 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Uwe Thiem [mailto:uwix@iway.na]
> Sent: 08 January 2007 10:25
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Init scripts waiting for deps in progress
>
>
> On 07 January 2007 19:10, Daniel Barkalow wrote:
> > I have the following set of init stuff:
> >
> > net.wireless depends on ipw3945d
> > ntp-client depends on net
> > net.wireless automagically starts when the interface
> "wireless" appears
> > net.wireless is in the boot runlevel
> >
> > When I boot the computer, it starts ipw3945d before
> net.wireless, but not
> > in time for the "wireless" interface to appear before it
> tries to start
> > net.wireless. Moments later, the interface appears, and it runs
> > net.wireless again, asynchronously, and it spends a while
> starting up (it
> > has to find the correct network, and dhcp, etc).
> >
> > While net.wireless is starting up, the system synchronously starts
> > ntp-client, which attempts to start net.wireless; this
> fails (it's already
> > starting), and so ntp-client fails. Then the asynchronous
> net.wireless
> > finishes starting, and I have network, but no ntp-client.
>
> You didn't say which runlevel started ntp-client. Assuming it
> is also in your
> boot runlevel, you can try to move it to your default
> runlevel. That way, it
> will start a bit later.
>
> Uwe
>
A quick and dirty fix may include a sleep statement somewhere for a few
seconds, if needed?
David
Note: These views are my own, advice is provided with no guarantee of
success. I do not represent anyone else in any emails I send to this
list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-08 13:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-07 17:10 [gentoo-user] Init scripts waiting for deps in progress Daniel Barkalow
2007-01-08 10:24 ` Uwe Thiem
2007-01-08 12:56 ` Nelson, David (ED, PAR&D)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox