Explorar o código

Fix for missing NetworkManager on OpenVZ/Virutozzo

Serghey Rodin %!s(int64=9) %!d(string=hai) anos
pai
achega
c2c8b0ed2b
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      install/vst-install-rhel.sh

+ 12 - 0
install/vst-install-rhel.sh

@@ -852,6 +852,12 @@ if [ "$nginx" = 'yes' ]; then
     chkconfig nginx on
     chkconfig nginx on
     service nginx start
     service nginx start
     check_result $? "nginx start failed"
     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
 fi
 
 
 
 
@@ -884,6 +890,12 @@ if [ "$apache" = 'yes'  ]; then
     chkconfig httpd on
     chkconfig httpd on
     service httpd start
     service httpd start
     check_result $? "httpd start failed"
     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
 fi