</pre>
Replace === Fix console device redirect === Open <code>etc/init.d/halt</code> script and replace the following lines:<pre># Redirect our mesages to default consoletest -n "$REDIRECT" && exec 0<> $REDIRECT 1>&0 2>&0</pre>with regular file this one (otherwise note <code>vzctl stop|| true</code> at the end):<pre># Redirect our mesages to default consoletest -n "$REDIRECT" && exec 0<> $REDIRECT 1>&0 2>&0 || true</pre> The reason is that this redirect fails with timeout -- needs more investigationpermission denied in OpenVZ environment if <code>$REDIRECT</code> is console device (<code>/dev/console</code>). As a result, script terminates with error (because of <code>set +e</code> at the beginning)and the box is not stopped properly. As an option, you can replace console device with regular file:
<pre>
rm lib/udev/devices/console ; touch lib/udev/devices/console