Ricardo Garcia wrote: > First of all, sorry for the format of the reply, I had digest mode > enabled but I just disabled it. > > On Wed, Mar 12, 2008 at 5:00 AM, <[EMAIL PROTECTED]> wrote: > > >> Message: 1 >> Date: Tue, 11 Mar 2008 17:58:47 +0000 >> From: Ian Lee <[EMAIL PROTECTED]> >> Subject: [Initng] initng-scripts net/* on Gentoo >> To: [email protected] >> Message-ID: <[EMAIL PROTECTED]> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Ok, I'm looking for ideas for the net/* scripts in initng-scripts for >> initng-svn(0.7). >> >> The current scripts matches the ifiles setup, i.e it runs >> /lib/initng/scripts/net/interfaces. The problem i'm having with this is >> anything dependant on virtual/net is starting before the dhcp client >> daemon has completed >> >> Any ideas welcome >> >> thanks IanL >> >> > > Why not follow the sysinit model? Most of the services started via > init, depend on the service "network-up" being active. So, we need a > service that tell us that all interfaces have been loaded. How? I > think that it could be done by adding a .conf file in /etc/initng > where you tell initng which interfaces you want to be UP. It would > just list the interface names, like lo (well, that would be > mandatory), eth0, eth1, etc. In theory this could be done just by > analyzing the contents of /etc/sysconfig/network-scripts, but that's > distro dependant. First we should focus on the basics. > > Then you could add a "network-up" service, which would provide > virtual/net by reading the .conf file and starting all the listed > interfaces. Then you only have to remove virtual/net from the said > services. > > Ta-da! > Thanks for the reply. I finally got it working. Here is how it works, this is gentoo specific:
net/eth0 script "needs" net/interface/eth0 net/eth0 script "uses" daemon/dhcpcd/eth0 net/eth0 script "provides" virtual/net & virtual/net/eth0 net/interface/eth0 calls /lib/initng/scripts/net/interfaces net/eth0 & virtual/net now wait for dhcpcd to finish I've altered LVM to work with gentoo as well, ill make a ticket for all these changes at some point -- _______________________________________________ Initng mailing list [email protected] http://jw.dyndns.org/mailman/listinfo/initng
