Skip to content

Commit c2c8b0e

Browse files
author
Serghey Rodin
committed
Fix for missing NetworkManager on OpenVZ/Virutozzo
1 parent 91b7144 commit c2c8b0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

install/vst-install-rhel.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
855861
fi
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
887899
fi
888900

889901

0 commit comments

Comments
 (0)