 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] network-script don't start on boot
 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
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |