[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] network-script don't start on boot


  • To: "Lucas Mocellin" <lucasmocellin@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.