From a5a9eb2f858791fcecbc9ae54dc77cfb1bd6e7f3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 18 Jul 2016 15:45:09 +0200 Subject: Adding error message in container start command if container is locked. Signed-off-by: Daniel Baumann --- lib/container/start | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/container/start b/lib/container/start index d5bbbf4..7e11121 100755 --- a/lib/container/start +++ b/lib/container/start @@ -107,6 +107,12 @@ case "${START}" in ;; esac +if [ -e "${MACHINES}/.#${NAME}.lck" ] +then + echo "'${NAME}': container is locked" >&2 + exit 1 +fi + HOST_ARCHITECTURE="$(dpkg --print-architecture)" MACHINE_ARCHITECTURE="$(chroot ${MACHINES}/${NAME} dpkg --print-architecture)" -- cgit v1.2.3