aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Riley <justin.t.riley@gmail.com>2015-05-08 12:35:11 -0400
committerJustin Riley <justin.t.riley@gmail.com>2015-05-12 11:13:29 -0400
commit68e4dba46ab1ffa6604a6170fcecd181f2c9a0a9 (patch)
tree915e4bf752271f423c48a492d00f257a98eba705 /tools
parent57990a94aeac87e2ba5e25848215dcd4a0dbb9e3 (diff)
downloadkolla-68e4dba46ab1ffa6604a6170fcecd181f2c9a0a9.tar.gz
kolla-68e4dba46ab1ffa6604a6170fcecd181f2c9a0a9.zip
add restart and destroy subcommands to tools/kolla
Convenience commands for restarting all containers and destroying all containers Change-Id: I9c4759dbe699bd4b609cefa694ecc897355ff60a
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/kolla b/tools/kolla
index df69d64e8..c7be4b141 100755
--- a/tools/kolla
+++ b/tools/kolla
@@ -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
;;