From 33ecffa4bbabc017e91d1f3345fa305f668251d4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 25 Oct 2016 14:46:14 +0200 Subject: Removing -f|--force option in container stop command for LTS version. Signed-off-by: Daniel Baumann --- lib/container/stop | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'lib') 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} -- cgit v1.2.3