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] network-script don't start on boot

To: "Lucas Mocellin" <lucasmocellin@xxxxxxxxx>
Subject: Re: [Xen-users] network-script don't start on boot
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Sun, 3 Aug 2008 22:16:25 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 03 Aug 2008 19:17:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=N0i+3hDCVrQbSdRBQVHsy4+xQfRgBOBo8S3TfTJnSZ4=; b=QzDs5GYHmH+++42bld+i4B4BbqAE65mN518QKr9wS38ZZ7LmbcBzNnJq7Wx02HOs+m RPKmKpnFo6eVRbiTLbRs4PWgmM+9sfLVW+x3tFaJwp9BGaIgiPTySWtbpSakAFyodQSq qlKLCc+fpkkPtzqrtOWkZY5A4wmQkFScmyYzE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=EoxA5mTmVnrNE6lF1w32sfxZpPYQluEgao6Q98+KD0lFIWTdo6MHMGh9uK6we5bjM6 BGv6KwC9qK86G0ByPc/GWezQxE7aG/aX0HEkT3Iguc5QD+uBb39Cg73h7bDYN+wg9o6s ZhW1JxYFDTnCGBTiVWV4YW/xcb9l3NPGUGmpI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <edfc67860808031145s10774d1cj5936d7ba8d2a9439@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <edfc67860808031145s10774d1cj5936d7ba8d2a9439@xxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, Aug 3, 2008 at 2:45 PM, Lucas Mocellin <lucasmocellin@xxxxxxxxx> wrote:
> Hi,
>
> I'm having trouble with the network-script.
>

Remove the space between the # and ! on the first line, it should read:

#!/bin/sh

> I have 2 networks and I did a script to bridge both.
> -rwxr-xr-x 1 root root  520 2008-08-03 15:28 network-bridge-eth0-eth1
> cat network-bridge-eth0-eth1
> # !/bin/sh
> # network-xen-multi-bridge
> # Exit if anything goes wrong
> set -e
>
> dir=$(dirname "$0")
>
> # First arg is operation.
> #shift
> case $1 in
> start)
>         "$dir/network-bridge" "$@" netdev=eth0
>         "$dir/network-bridge" "$@" netdev=eth1
>         ;;
> stop)
>         #"$dir/network-bridge" "$@" bridge=peth0 netdev=eth0
>         "$dir/network-bridge" "$@" netdev=eth1
>         ;;
> status)
>         "$dir/network-bridge" "$@"
>         ;;
> *)
>         echo 'Unknown command: ' ${OP}
>         echo 'Valid commands are: start, stop, status'
>         exit 1
>         ;;
> esac
>
> If I start the script manually, all goes fine, but the script don't start at
> boot.
>
> There is execution permission and are in xend-config.sxp
>
> Anyboy has any idea?
>
> thanks,
>
> Lucas.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



-- 
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com

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

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