diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-04-21 17:48:29 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-05-06 12:06:02 +0000 |
commit | 87e067ca938dd0ed23e45b55d60c0fd859d037c6 (patch) | |
tree | 9c1ad03676a98e0b691a806fa2f82d5d198fe617 /lib/container/stop | |
parent | Releasing debian version 20160401-1. (diff) | |
download | open-infrastructure-compute-tools-87e067ca938dd0ed23e45b55d60c0fd859d037c6.tar.xz open-infrastructure-compute-tools-87e067ca938dd0ed23e45b55d60c0fd859d037c6.zip |
Merging upstream version 20160415.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lib/container/stop')
-rwxr-xr-x | lib/container/stop | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/container/stop b/lib/container/stop index a11c155..cd3de10 100755 --- a/lib/container/stop +++ b/lib/container/stop @@ -24,8 +24,8 @@ MACHINES="/var/lib/machines" Parameters () { - LONG_OPTIONS="name:,kill" - OPTIONS="n:,k" + LONG_OPTIONS="name:,force" + OPTIONS="n:,f" PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${COMMAND} --options ${OPTIONS} --shell sh -- ${@})" @@ -45,8 +45,8 @@ Parameters () shift 2 ;; - -k|--kill) - KILL="true" + -f|--force) + FORCE="true" ;; --) @@ -64,7 +64,7 @@ Parameters () Usage () { - echo "Usage: container ${COMMAND} -n|--name NAME [-k|--kill]" >&2 + echo "Usage: container ${COMMAND} -n|--name NAME [-f|--force]" >&2 exit 1 } @@ -93,7 +93,7 @@ case "${STATE}" in ;; esac -case "${KILL}" in +case "${FORCE}" in true) MODE="terminate" ;; |