xen-drbd
changeset 5:1c7442c793a1
*** empty log message ***
author | eb |
---|---|
date | Fri Oct 05 16:59:35 2007 +0300 (2007-10-05) |
parents | 0b0a886abd08 |
children | 7af6c8ecdf0c |
files | default-xen-drbd init.d-xen-drbd xen-drbd-start.py xen-drbd.py |
line diff
1.1 --- a/default-xen-drbd Fri Sep 28 16:32:50 2007 +0300 1.2 +++ b/default-xen-drbd Fri Oct 05 16:59:35 2007 +0300 1.3 @@ -1,5 +1,5 @@ 1.4 XEN_DRBD_PATH='/usr/local/bin' 1.5 TOPOLOGY_NAME='eb' 1.6 -START_ACTION=nothing #migrate-and-start-all 1.7 -STOP_ACTION=migrate-all-out 1.8 +START_ACTION=nothing # migrate-and-start-all 1.9 +STOP_ACTION=nothing # migrate-all-out 1.10
2.1 --- a/init.d-xen-drbd Fri Sep 28 16:32:50 2007 +0300 2.2 +++ b/init.d-xen-drbd Fri Oct 05 16:59:35 2007 +0300 2.3 @@ -17,7 +17,12 @@ 2.4 fi 2.5 ;; 2.6 stop) 2.7 - $XEN_DRBD_PATH/xen-drbd.py $STOP_ACTION 2.8 + if [ -z "$STOP_ACTION" ] || echo $STOP_ACTION | grep -qix nothing 2.9 + then 2.10 + true 2.11 + else 2.12 + $XEN_DRBD_PATH/xen-drbd.py $STOP_ACTION 2.13 + fi 2.14 ;; 2.15 *) 2.16 echo $0 'start|stop'
3.1 --- a/xen-drbd-start.py Fri Sep 28 16:32:50 2007 +0300 3.2 +++ b/xen-drbd-start.py Fri Oct 05 16:59:35 2007 +0300 3.3 @@ -7,7 +7,7 @@ 3.4 3.5 import sys 3.6 3.7 -sys.path.append('/root') 3.8 +sys.path.append('/etc/xen') 3.9 try: 3.10 exec 'from %s import *' % (network) 3.11 except:
4.1 --- a/xen-drbd.py Fri Sep 28 16:32:50 2007 +0300 4.2 +++ b/xen-drbd.py Fri Oct 05 16:59:35 2007 +0300 4.3 @@ -13,7 +13,7 @@ 4.4 print "Can't find or interpret module %s with topology description" %(network) 4.5 sys.exit(1) 4.6 4.7 -xen_drbd_start="xen-drbd-start.py" 4.8 +xen_drbd_start="/etc/xen/xen-drbd-start" 4.9 domain_create_line="xm create "+xen_drbd_start+" network="+network+" domain=%s" 4.10 4.11 def the_peer_of(node):