Add case for -status) case in run.dist.sh
[integration/packaging.git] / packaging / rpm / run.dist.sh
1 #!/bin/bash
2
3 option=$1;
4 shift
5
6 case "$option" in
7 base)
8     bundlefilter="-bundlefilter org.opendaylight.ovsdb.ovsdb.neutron"
9     /usr/share/opendaylight-controller/run.base.sh $bundlefilter "$@"
10     ;;
11
12 virt-ovsdb)
13     bundlefilter="-bundlefilter org.opendaylight.(vtn|opendove)"
14     /usr/share/opendaylight-controller/run.sh -virt ovsdb "$@"
15     ;;
16
17 virt-vtn)
18     echo "$option not supported yet"
19     #bundlefilter="-bundlefilter org.opendaylight.(affinity|opendove|ovsdb|controller.(arphandler|samples)"
20     #/usr/share/opendaylight-controller/run.sh -virt vtn "$@"
21     ;;
22
23 virt-opendove)
24     echo "$option not supported yet"
25     #bundlefilter="-bundlefilter org.opendaylight.(ovsdb|vtn)"
26     #/usr/share/opendaylight-controller/run.sh -virt vtn "$@"
27     ;;
28
29 sp)
30     echo "$option not supported yet"
31     #/usr/share/opendaylight-controller/run.sh sp "$@"
32     ;;
33
34 -stop)
35     /usr/share/opendaylight-controller/run.internal.sh -stop
36     ;;
37
38 -status)
39     /usr/share/opendaylight-controller/run.internal.sh -status
40     ;;
41
42 *)
43     echo "Invalid option: $option"
44     ;;
45 esac
46
47 exit 0