sleep 120 to stop container
This commit is contained in:
@@ -9,6 +9,7 @@ Color_Off='\033[0m' # Text Reset
|
|||||||
TMSTMP=$(date +'%Y%m%d%H%M%S')
|
TMSTMP=$(date +'%Y%m%d%H%M%S')
|
||||||
|
|
||||||
function stop_container() {
|
function stop_container() {
|
||||||
|
sleep 120
|
||||||
lxc stop ${1}
|
lxc stop ${1}
|
||||||
echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}"
|
echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ BGreen='\033[1;32m' # Green
|
|||||||
Color_Off='\033[0m' # Text Reset
|
Color_Off='\033[0m' # Text Reset
|
||||||
|
|
||||||
function stop_container() {
|
function stop_container() {
|
||||||
|
sleep 120
|
||||||
lxc stop ${1}
|
lxc stop ${1}
|
||||||
echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}"
|
echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user