[Initng] Initng Digest, Vol 35, Issue 2

Ricardo Garcia rick.g777 at gmail.com
Wed Mar 12 15:30:03 CET 2008


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, <initng-request at initng.org> wrote:

> Message: 1
> Date: Tue, 11 Mar 2008 17:58:47 +0000
> From: Ian Lee <ian at leehouse.eclipse.co.uk>
> Subject: [Initng] initng-scripts net/* on Gentoo
> To: initng at initng.org
> Message-ID: <47D6C857.70101 at leehouse.eclipse.co.uk>
> 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!


More information about the Initng mailing list