Print LXC start

Just somes echo to inform when LXC starting

And a comment because Moul will hang me if I not do that !
This commit is contained in:
Maniack Crudelis 2017-03-30 16:28:27 +02:00
parent a60213a3e2
commit ba86a4fc01

View file

@ -35,7 +35,10 @@ LXC_START () {
# Start the container and log the booting process in $script_dir/lxc_boot.log
# Try to start only if the container is not already started
if ! is_lxc_running; then
echo "Start the LXC container" | tee --append "$test_result"
sudo lxc-start --name=$LXC_NAME --daemon --logfile "$script_dir/lxc_boot.log" | tee --append "$test_result" 2>&1
else
echo "An LXC container is already running" | tee --append "$test_result"
fi
# Check during 20 seconds if the container has finished to start.