summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-06-05 06:22:39 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-06-05 07:27:23 +0000
commita6b3dc088b186db8a43349dc86853c35b1b05530 (patch)
tree79b5242519687c5c625ffd889cf12a2d77851a73 /share
parentAdding default interactive mode for container stop command. (diff)
downloadcompute-tools-a6b3dc088b186db8a43349dc86853c35b1b05530.tar.xz
compute-tools-a6b3dc088b186db8a43349dc86853c35b1b05530.zip
Renaming force option in container stop command to kill in order to properly separate the three different stop modi (interactive, force, kill).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share')
-rw-r--r--share/bash-completion/container2
-rw-r--r--share/man/container-stop.1.rst11
2 files changed, 10 insertions, 3 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index e08b7f8..5b57193 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -257,7 +257,7 @@ _container()
;;
*)
- opts="-n --name -f --force -i --interactive"
+ opts="-n --name -f --force -i --interactive -k --kill"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
diff --git a/share/man/container-stop.1.rst b/share/man/container-stop.1.rst
index 567b2f4..bf668be 100644
--- a/share/man/container-stop.1.rst
+++ b/share/man/container-stop.1.rst
@@ -49,11 +49,14 @@ The following **container stop** options are available:
Specify container name. Specifying 'ALL' will stop all started container.
-f, --force:
- Instead of running the proper shutdown sequence, terminate all processes of the container imediatly.
+ Do not prompt before every stopping.
-i, --interactive:
Prompt before every stopping (default).
+-k, --kill:
+ Instead of running the proper shutdown sequence, terminate all processes of the container imediatly.
+
-v, --verbose:
Explain what is being done.
@@ -64,9 +67,13 @@ Shutdown example.net container:
sudo container stop -n example.net
+Shutdown example.net container without prompting:
+
+ sudo container stop -n example.net -f
+
Immediately stop example.net container:
- sudo container stop -n example.net -f
+ sudo container stop -n example.net -k
Stop all container: