If your gentoo system isn’t rebooting, it is possible that there is something missing in /etc/init.d/reboot.sh.
OpenVZ installs a cron job, which is running every 5 minutes to check if there is a vps which must be rebooted. This cron script is checking if in the root of a vps a file named ‘/reboot’ is available. If it exists, the vps will be rebooted.
The Gentoo-init-scripts, regardless of which baselayout (baselayout or baselayout-vserver) is installed, doesn’t create the file in the root of a vps.
You can get this fixed by doing the following:
Inside your vps start an editor of your choice and edit /etc/init.d/reboot.sh.
Insert the following line before /sbin/reboot -dp.
1 | touch /reboot |
After saving your file, it should be possible to restart your vps without the need of using vzctl.