Explorar o código

Workaround for OpenVZ/Virtuozzo

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

+ 5 - 0
install/vst-install-ubuntu.sh

@@ -993,6 +993,11 @@ if [ "$named" = 'yes' ]; then
     update-rc.d bind9 defaults
     update-rc.d bind9 defaults
     service bind9 start
     service bind9 start
     check_result $? "bind9 start failed"
     check_result $? "bind9 start failed"
+
+    # Workaround for OpenVZ/Virtuozzo
+    if [ -e "/proc/vz/veinfo" ]; then
+        sed -i "s/exit 0/service bind9 restart\nexit 0/" /etc/rc.local
+    fi
 fi
 fi
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#