Commit ea5a2a75 authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Remember to start mhvtl after reboot

And improve starting of old and new versions of mhvlt when creating buildtree environment
parent 5706a070
......@@ -5,7 +5,7 @@
# (Re-)create the mhvtl environment
echo Wiping mhvtl and kubernetes library info...
systemctl stop mhvtl || true
systemctl stop mhvtl &> /dev/null || systemctl stop mhvtl.target &> /dev/null
sleep 2
rm -rf /etc/mhvtl
umount /opt/mhvtl || true
......@@ -53,7 +53,7 @@ chown vtl.vtl /opt/mhvtl
################################################################################
#### Start mhvtl
echo Starting mhvtl...
systemctl start mhvtl
systemctl start mhvtl &> /dev/null || systemctl start mhvtl.target &> /dev/null
sleep 2
################################################################################
......
......@@ -21,6 +21,7 @@ else
sudo make_vtl_media -C /etc/mhvtl
sudo systemctl start mhvtl.target
sudo systemctl enable mhvtl.target
echo "Please check the result of 'make install'. If it has failed, reboot and rerun this script"
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment