File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -852,6 +852,12 @@ if [ "$nginx" = 'yes' ]; then
852852 chkconfig nginx on
853853 service nginx start
854854 check_result $? " nginx start failed"
855+
856+ # Workaround for OpenVZ/Virtuozzo
857+ if [ " $release " -eq ' 7' ] && [ -e " /proc/vz/veinfo" ]; then
858+ echo " #Vesta: workraround for networkmanager" >> /etc/rc.local
859+ echo " sleep 3 && service nginx restart" >> /etc/rc.local
860+ fi
855861fi
856862
857863
@@ -884,6 +890,12 @@ if [ "$apache" = 'yes' ]; then
884890 chkconfig httpd on
885891 service httpd start
886892 check_result $? " httpd start failed"
893+
894+ # Workaround for OpenVZ/Virtuozzo
895+ if [ " $release " -eq ' 7' ] && [ -e " /proc/vz/veinfo" ]; then
896+ echo " #Vesta: workraround for networkmanager" >> /etc/rc.local
897+ echo " sleep 2 && service httpd restart" >> /etc/rc.local
898+ fi
887899fi
888900
889901
You can’t perform that action at this time.
0 commit comments