diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-10-25 13:10:17 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-10-25 13:10:17 +0000 |
commit | 17e90600218e654071457f0845968e143e8c5d15 (patch) | |
tree | f58c502fe6dadaef45e1a3844944905837b37e51 /lib/container/stop | |
parent | Adding upstream version 20160801. (diff) | |
download | open-infrastructure-compute-tools-17e90600218e654071457f0845968e143e8c5d15.tar.xz open-infrastructure-compute-tools-17e90600218e654071457f0845968e143e8c5d15.zip |
Adding upstream version 20161101.upstream/20161101
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lib/container/stop')
-rwxr-xr-x | lib/container/stop | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/container/stop b/lib/container/stop index ec24d51..ba8960d 100755 --- a/lib/container/stop +++ b/lib/container/stop @@ -27,8 +27,8 @@ CLEAN="false" Parameters () { - LONG_OPTIONS="name:,force,clean," - OPTIONS="n:,f," + LONG_OPTIONS="name:,clean," + OPTIONS="n:," PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${COMMAND} --options ${OPTIONS} --shell sh -- ${@})" @@ -48,10 +48,6 @@ Parameters () shift 2 ;; - -f|--force) - FORCE="true" - ;; - --clean) # internal option CLEAN="true" @@ -170,15 +166,5 @@ case "${STATE}" in ;; esac -case "${FORCE}" in - true) - MODE="terminate" - ;; - - *) - MODE="poweroff" - ;; -esac - # Run -machinectl ${MODE} ${NAME} +machinectl poweroff ${NAME} |