WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Warning wrt starting the xen3.0 network-bridge from init

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Warning wrt starting the xen3.0 network-bridge from init scripts on Gentoo
From: Lionel Bouton <lionel-subscription@xxxxxxxxxxx>
Date: Fri, 04 Nov 2005 17:30:25 +0100
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: Fri, 04 Nov 2005 16:31:15 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D32E77B@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32E77B@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051014)
Ian Pratt wrote the following on 04.11.2005 17:12 :

Gentoo is rather aggressive wrt making sure that dependencies are fulfilled.

This means that running /etc/init.d/net.eth0 restart from an init script which declares that it requires a functioning network to work will, if no interfaces other than eth0 is configured, cause that init script to be told to shut down before the network adapter can be deconfigured!

Hilarious!

In fact this isn't a problem at all. A Gentoo admin only have to set:
RC_NET_STRICT_CHECKING="lo"
in /etc/conf.d/rc

the config file states:
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
# The following values are allowed:
#  none  - The 'net' service is always considered up.
# no - This basically means that at least one net.* service besides net.lo # must be up. This can be used by notebook users that have a wifi and
#          a static nic, and only wants one up at any given time to have the
#          'net' service seen as up.
#  lo    - This is the same as the 'no' option, but net.lo is also counted.
# This should be useful to people that do not care about any specific
#          interface being up at boot.
# yes - For this ALL network interfaces MUST be up for the 'net' service to
#          be considered up.

Gentoo scripts are far more flexible than you would believe at first glance :-) Just look at the /etc/conf.d/<subsystem>. In this case we are speaking of the "rc" script which does the dependency resolution.

Lionel.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>