xen-drbd
view init.d-xen-drbd @ 3:3ce02620180c
+ eb.py
author | igor |
---|---|
date | Fri Sep 28 16:08:02 2007 +0300 (2007-09-28) |
parents | b6dc3480caae |
children | 1c7442c793a1 |
line source
1 #!/bin/sh
3 XEN_DRBD_PATH='/usr/bin'
4 TOPOLOGY_NAME='xen-drbd'
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.py ${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.py $START_ACTION
17 fi
18 ;;
19 stop)
20 $XEN_DRBD_PATH/xen-drbd.py $STOP_ACTION
21 ;;
22 *)
23 echo $0 'start|stop'
24 ;;
25 esac