summaryrefslogtreecommitdiffstats
path: root/libexec/container/auto
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 /libexec/container/auto
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 'libexec/container/auto')
-rwxr-xr-xlibexec/container/auto6
1 files changed, 6 insertions, 0 deletions
diff --git a/libexec/container/auto b/libexec/container/auto
index 927eae0..461e67d 100755
--- a/libexec/container/auto
+++ b/libexec/container/auto
@@ -109,6 +109,12 @@ case "${FORCE}" in
;;
esac
+case "${ACTION}" in
+ stop)
+ OPTIONS="${OPTIONS} -f"
+ ;;
+esac
+
for FILE in "${CONFIG}"/*.conf
do
if grep -Eqs "^ *cnt.auto=force-true" "${FILE}"