blob: ac1efba7482eefee5c13fe2d5696847971bcfd72 [file] [log] [blame]
Don Duggerf84eb5b2014-01-30 09:59:30 -07001# gantt.sh - Devstack extras script to install Gantt
2
3if is_service_enabled n-sch; then
4 disable_service gantt
5fi
6
7if is_service_enabled gantt; then
8 if [[ "$1" == "source" ]]; then
9 # Initial source
10 source $TOP_DIR/lib/gantt
11 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
12 echo_summary "Installing Gantt"
13 install_gantt
14 cleanup_gantt
15 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
16 echo_summary "Configuring Gantt"
17 configure_gantt
18
19 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
20 # Initialize gantt
21 init_gantt
22
23 # Start gantt
24 echo_summary "Starting Gantt"
25 start_gantt
26 fi
27
28 if [[ "$1" == "unstack" ]]; then
29 stop_gantt
30 fi
31fi