From c2c8b0ed2b6efd7ad9ca4e9f9f9157c498bc440d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 3 Oct 2016 14:54:03 +0300 Subject: [PATCH] Fix for missing NetworkManager on OpenVZ/Virutozzo --- install/vst-install-rhel.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index 68cc72a18..252ebeb51 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -852,6 +852,12 @@ if [ "$nginx" = 'yes' ]; then chkconfig nginx on service nginx start check_result $? "nginx start failed" + + # Workaround for OpenVZ/Virtuozzo + if [ "$release" -eq '7' ] && [ -e "/proc/vz/veinfo" ]; then + echo "#Vesta: workraround for networkmanager" >> /etc/rc.local + echo "sleep 3 && service nginx restart" >> /etc/rc.local + fi fi @@ -884,6 +890,12 @@ if [ "$apache" = 'yes' ]; then chkconfig httpd on service httpd start check_result $? "httpd start failed" + + # Workaround for OpenVZ/Virtuozzo + if [ "$release" -eq '7' ] && [ -e "/proc/vz/veinfo" ]; then + echo "#Vesta: workraround for networkmanager" >> /etc/rc.local + echo "sleep 2 && service httpd restart" >> /etc/rc.local + fi fi