xen-drbd
view init.d-xen-drbd @ 60:dd23766a87c6
Minor fixes. Hvmlaoder now can be specified by its path in the netowrk config file.
Also slightly changed drbdadm call
Also slightly changed drbdadm call
author | igor@book.xt.vpn |
---|---|
date | Thu Mar 19 19:42:41 2009 +0200 (2009-03-19) |
parents | cbd4d942d059 |
children |
line source
1 #!/bin/sh
3 XEN_DRBD_PATH='/usr/bin'
4 TOPOLOGY_NAME='network'
5 START_ACTION='nothing'
6 STOP_ACTION='nothing'
7 [ -e /etc/default/xen-drbd ] && . /etc/default/xen-drbd
9 case $1 in
10 start)
11 $XEN_DRBD_PATH/xen-drbd-install --network=${TOPOLOGY_NAME} make-links | sh -s
12 if [ -z "$START_ACTION" ] || echo $START_ACTION | grep -qix nothing
13 then
14 true
15 else
16 $XEN_DRBD_PATH/xen-drbd --network=${TOPOLOGY_NAME} $START_ACTION
17 fi
18 ;;
19 stop)
20 if [ -z "$STOP_ACTION" ] || echo $STOP_ACTION | grep -qix nothing
21 then
22 true
23 else
24 $XEN_DRBD_PATH/xen-drbd --network=${TOPOLOGY_NAME} $STOP_ACTION
25 fi
26 ;;
27 *)
28 echo $0 'start|stop'
29 ;;
30 esac