The NET virtual service is explained in the document, and in the case of a host with a single network interface it is fully clear how it works. However, a host may have multiple interfaces (they would then be listed in /etc/conf.d/net). In this case, when is the NET virtual service provided? Is it when ANY of the network interfaces has been brought up, or is it only when ALL of them have been brought up? This ought to be clarified in the manual. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r8-viveka-011) ================================================================= System uname: 2.4.20-gentoo-r8-viveka-011 i586 Pentium 75 - 200 Gentoo Base System version 1.4.3.8p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i586 -funroll-loops -pipe" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i586 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://gentoo.linux.no/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm gtk imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype X xml2 xmms xv zlib gdbm berkdb readline java tcpd pam ssl perl python"
Please read the docs. For example running /etc/init.d/net.eth0 without args will give help - refer to below snippit: -- 'net' Dependency and 'net.*' Services: Example: depend() { need net } This is a special dependency of type 'need'. It represents a state where a network interface or interfaces besides lo is up and active. Any service starting with 'net.' will be treated as a part of the 'net' dependency, if: 1. It is part of the 'boot' runlevel 2. It is part of the current runlevel A few examples are the /etc/init.d/net.eth0 and /etc/init.d/net.lo services. --
Thanks, now I know where to look. I would have hoped that the "net" virtual service meant all net.ethX interfaces up, not just any of them. But that's another story and I'll find a way to do the necesssary checking. Still it might be useful IMHO to have this info in the rc-script guide too, it may be used for "offline" reading (that is, not having a working Gentoo system to consult).
Created attachment 21357 [details, diff] Patch to rc-scripts.xml This patch adds information that a dependency doesn't require all initscripts to load, only a single one. Would this be sufficient?
Yes, that looks quite useful.
then the init script will use one of the available <path>net.eth*</path> scripts, not all! this would sound better =) patch looks good
Created attachment 21359 [details, diff] Patch to rc-scripts.xml It is actually the rc script that makes the decision, not the init script in itself.
Can a docdev please review this?
s/scripts who all provide/scripts which all provide/ Patch looks good.
committed