xen-drbd

diff init.d-xen-drbd @ 37:e80bdf496aa2

1. --network (-n) option; topology name is not hardcoded since present
2. fix for incorrect processing of the paramater spicified in form like drbd8=sda1 in xen-drbd-install
author igor@manas.xt.vpn
date Mon Sep 15 10:03:24 2008 +0300 (2008-09-15)
parents cbd4d942d059
children
line diff
     1.1 --- a/init.d-xen-drbd	Mon Aug 18 21:27:14 2008 +0300
     1.2 +++ b/init.d-xen-drbd	Mon Sep 15 10:03:24 2008 +0300
     1.3 @@ -1,19 +1,19 @@
     1.4  #!/bin/sh
     1.5  
     1.6  XEN_DRBD_PATH='/usr/bin'
     1.7 -TOPOLOGY_NAME='xen-drbd'
     1.8 +TOPOLOGY_NAME='network'
     1.9  START_ACTION='nothing'
    1.10  STOP_ACTION='nothing'
    1.11  [ -e /etc/default/xen-drbd ] && . /etc/default/xen-drbd
    1.12  
    1.13  case $1 in
    1.14  		start)
    1.15 -			$XEN_DRBD_PATH/xen-drbd-install ${TOPOLOGY_NAME} make-links | sh -s
    1.16 +			$XEN_DRBD_PATH/xen-drbd-install --network=${TOPOLOGY_NAME} make-links | sh -s
    1.17  			if [ -z "$START_ACTION" ] || echo $START_ACTION | grep -qix nothing 
    1.18  			then
    1.19  				true
    1.20  			else
    1.21 -				$XEN_DRBD_PATH/xen-drbd $START_ACTION
    1.22 +				$XEN_DRBD_PATH/xen-drbd --network=${TOPOLOGY_NAME} $START_ACTION
    1.23  			fi
    1.24  		;;
    1.25  		stop)
    1.26 @@ -21,7 +21,7 @@
    1.27  			then
    1.28  				true
    1.29  			else
    1.30 -				$XEN_DRBD_PATH/xen-drbd $STOP_ACTION
    1.31 +				$XEN_DRBD_PATH/xen-drbd --network=${TOPOLOGY_NAME} $STOP_ACTION
    1.32  			fi
    1.33  		;;
    1.34  		*)