xen-drbd

diff init.d-xen-drbd @ 49:ff5eebae3437

minifix
author igor@manas.xt.vpn
date Tue Sep 30 13:22:29 2008 +0300 (2008-09-30)
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	Tue Sep 30 13:22:29 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  		*)