Skip to content
Snippets Groups Projects
Commit 49119178 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "add restart and destroy subcommands to tools/kolla"

parents e057343c 68e4dba4
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,8 @@ Commands:
start Start all kolla containers
status List running kolla containers
stop Stop all kolla containers
restart Restart all kolla containers
destroy Kill and remove all kolla containers and volumes
EOF
}
......@@ -110,6 +112,12 @@ case "$1" in
post_start
;;
(restart)
ACTION="Restarting"
COMPOSE_CMD="restart"
process_all
;;
(status)
ACTION="Status of"
COMPOSE_CMD="ps"
......@@ -122,6 +130,14 @@ case "$1" in
process_all
;;
(destroy)
ACTION="Destroying"
COMPOSE_CMD="kill"
process_all
COMPOSE_CMD="rm -f -v"
process_all
;;
(*) usage
exit 0
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment