# HG changeset patch # User eb # Date 1191592775 -10800 # Node ID 1c7442c793a14387bac01cacea7d796373fe8eb5 # Parent 0b0a886abd08d65739d7dcd483d39f45cce29404 *** empty log message *** diff -r 0b0a886abd08 -r 1c7442c793a1 default-xen-drbd --- a/default-xen-drbd Fri Sep 28 16:32:50 2007 +0300 +++ b/default-xen-drbd Fri Oct 05 16:59:35 2007 +0300 @@ -1,5 +1,5 @@ XEN_DRBD_PATH='/usr/local/bin' TOPOLOGY_NAME='eb' -START_ACTION=nothing #migrate-and-start-all -STOP_ACTION=migrate-all-out +START_ACTION=nothing # migrate-and-start-all +STOP_ACTION=nothing # migrate-all-out diff -r 0b0a886abd08 -r 1c7442c793a1 init.d-xen-drbd --- a/init.d-xen-drbd Fri Sep 28 16:32:50 2007 +0300 +++ b/init.d-xen-drbd Fri Oct 05 16:59:35 2007 +0300 @@ -17,7 +17,12 @@ fi ;; stop) - $XEN_DRBD_PATH/xen-drbd.py $STOP_ACTION + if [ -z "$STOP_ACTION" ] || echo $STOP_ACTION | grep -qix nothing + then + true + else + $XEN_DRBD_PATH/xen-drbd.py $STOP_ACTION + fi ;; *) echo $0 'start|stop' diff -r 0b0a886abd08 -r 1c7442c793a1 xen-drbd-start.py --- a/xen-drbd-start.py Fri Sep 28 16:32:50 2007 +0300 +++ b/xen-drbd-start.py Fri Oct 05 16:59:35 2007 +0300 @@ -7,7 +7,7 @@ import sys -sys.path.append('/root') +sys.path.append('/etc/xen') try: exec 'from %s import *' % (network) except: diff -r 0b0a886abd08 -r 1c7442c793a1 xen-drbd.py --- a/xen-drbd.py Fri Sep 28 16:32:50 2007 +0300 +++ b/xen-drbd.py Fri Oct 05 16:59:35 2007 +0300 @@ -13,7 +13,7 @@ print "Can't find or interpret module %s with topology description" %(network) sys.exit(1) -xen_drbd_start="xen-drbd-start.py" +xen_drbd_start="/etc/xen/xen-drbd-start" domain_create_line="xm create "+xen_drbd_start+" network="+network+" domain=%s" def the_peer_of(node):