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-devel

Re: [Xen-devel] [PATCH] warn when iproute2 or bridge-utils are missing

To: Scott Parish <srparish@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] warn when iproute2 or bridge-utils are missing
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Fri, 25 Feb 2005 15:48:08 -0600
Cc: Matt Ayres <matta@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 25 Feb 2005 21:53:28 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <20050225211946.GB11704@xxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Organization: IBM
References: <20050225190856.GA11704@xxxxxxxxxx> <1109362978.12319.88.camel@xxxxxxxxxxxxxxxxx> <20050225211946.GB11704@xxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Isn't it more appropriate to have these be install-time checks?

It seems wasteful to check for an installed program every time a script is run. I submitted check scripts for iproute2 and iptables a while ago.

All you have to do is add a check_iproute2 script to the tools/check directory that basically looks like:

#!/bin/sh
which ip || (echo "Check for iproute2 failed && exit 1)

Regards,
Anthony Liguori

Scott Parish wrote:

On Fri, Feb 25, 2005 at 03:22:58PM -0500, Matt Ayres wrote:

On Fri, 2005-02-25 at 19:08 +0000, Scott Parish wrote:
The attached patch checks for "ip" and "brctl" in the path, and warns
the user if they are not found.

Now that the routed setup is included (and IMHO works a whole lot
better) shouldn't the brctl check be optional somehow?

Maybe what i started to do would be better then: make sure that output
from the scripts gets sent to the console in addition to getting buried
in the log file. Then have the scripts check that the programs that they
need are available (before fiddling with the network and putting it in a
half way state).

sRp




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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