xen-drbd

view init.d-xen-drbd @ 0:b6dc3480caae

xen-drbd merge
author igor
date Thu Sep 27 18:56:29 2007 +0300 (2007-09-27)
parents
children d6f7c53b085d
line source
1 #!/bin/sh
3 XEN_DRBD_PATH='/usr/bin'
4 TOPOLOGY_NAME='xen-drbd'
5 START_ACTION='nothing'
6 [ -e /etc/default/xen-drbd ] && . /etc/default/xen-drbd
8 case $1 in
9 start)
10 $XEN_DRBD_PATH/xen-drbd-install.py ${TOPOLOGY_NAME} make-links | sh -s
11 if [ -z "$START_ACTION" ] || echo $START_ACTION | grep -qix nothing
12 then
13 true
14 else
15 $XEN_DRBD_PATH/xen-drbd.py $START_ACTION
16 fi
17 ;;
18 stop)
19 $XEN_DRBD_PATH/xen-drbd.py migrate-all-out
20 ;;
21 *)
22 echo $0 'start|stop'
23 ;;
24 esac