Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34192 - Unclear when the NET virtual service is provided
Summary: Unclear when the NET virtual service is provided
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux rc-script Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 08:26 UTC by Rabbe Fogelholm
Modified: 2003-12-05 08:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to rc-scripts.xml (rc-scripts.diff-34192,560 bytes, patch)
2003-11-27 02:59 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to rc-scripts.xml (rc-scripts.diff-34192,571 bytes, patch)
2003-11-27 04:05 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2003-11-23 08:26:38 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-26 11:46:46 UTC
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.
--
Comment 2 Rabbe Fogelholm 2003-11-26 23:47:34 UTC
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).
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-27 02:59:10 UTC
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?
Comment 4 Rabbe Fogelholm 2003-11-27 03:29:50 UTC
Yes, that looks quite useful.
Comment 5 Benny Chuang (RETIRED) gentoo-dev 2003-11-27 03:48:52 UTC
then the init script will use one of the available <path>net.eth*</path> scripts, not all!

this would sound better =)

patch looks good
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-27 04:05:32 UTC
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.
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-02 12:53:27 UTC
Can a docdev please review this?
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2003-12-05 05:32:51 UTC
s/scripts who all provide/scripts which all provide/

Patch looks good.
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-05 08:23:28 UTC
committed