Eric MSP Veith wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> while integrating InitNG with my system I have come across a problem I cannot 
> solve myself. It is connected to net/ip, daemon/dhcpcd and system/netmount. 
> net/net uses the /sbin/{ifup,ifdown} scripts to bring the interface up (and 
> down respectively). Digging into these scripts, I found that they will start 
> the DHCP client if needed. However, the script daemon/{dhcpcd,dhclient} also 
> exisits, so I assume that these scripts are added to let InitNG control the 
> client daemons if started up. system/netmount needs a working network 
> interface, so it depends on virtual/net. That's clear to me.
>
> Now here comes the problem: I added daemon/dhcpcd because my link is 
> configured via DHCP and I want InitNG to control the DHCP client. I also use 
> system/netmount to mount remote /home directories. On system shutdown, the 
> DHCP client is killed before the NFS shares are unmounted, since 
> system/netmount does not depend on daemon/dhcpcd. However, NFS shares cannot 
> be cleanly unmounted without a working link.
>
> I solved this problem until now by adding "provide = virtual/dhcp" to 
> daemon/dhcpcd and "use = virtual/dhcp" to system/netmount. Is this a correct 
> solution or should it work another way?
>
> Thanks for the fish. :-)
>       EMSPV
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
>
> iD8DBQFEwL5DMpEdE19y46cRAo+OAJ9hcrgpUDPncwBkQmPEEKhr1ZnmDQCeOLbt
> 0uv6GAHiDt/5xe3sg2Onbpo=
> =wA2u
> -----END PGP SIGNATURE-----
>   
If I have understood your posting correctly you want to get an IP via 
dhcp right?
if yes you don't need dhcpd (which is a dhcp server) but dhclient.

-- 
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to