From 55a1bdefcbc2692ac461f7aa2e82cc78a3b0cc4d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 8 Dec 2016 15:41:04 +0200 Subject: [PATCH] Workaround for OpenVZ/Virtuozzo --- install/vst-install-ubuntu.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 08975cd4..138f6c0b 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -993,6 +993,11 @@ if [ "$named" = 'yes' ]; then update-rc.d bind9 defaults service bind9 start 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 #----------------------------------------------------------#