I'm not sure if this is a bug, so I am posting it here first.
We are using WHM in a Centos 5 OpenVZ container.
OpenVZ requires a file /reboot in order to reboot a container as there is a cron job on the host node that calls
(a script that checks all containers every 5 minutes for this file and reboots the container in question if it finds the file).
To get the file /reboot created on a Graceful Server Reboot, I opened
and added
just after
This does not fix Forceful Server Reboots though.
When I attempt a Forceful Server Reboot, the file is not created.
I noticed that just before the server shuts down, these processes are active:
So my question is: How do I get the /reboot file created when a forceful server reboot is done through WHM?
We are using WHM in a Centos 5 OpenVZ container.
OpenVZ requires a file /reboot in order to reboot a container as there is a cron job on the host node that calls
Code:
/usr/share/vzctl/scripts/vpsreboot
To get the file /reboot created on a Graceful Server Reboot, I opened
Code:
/etc/rc.d/rc6.d/S01reboot
Code:
>/reboot
Code:
# Kill all processes.
When I attempt a Forceful Server Reboot, the file is not created.
I noticed that just before the server shuts down, these processes are active:
Code:
root 28149 0.0 0.4 78100 26636 ? S 03:42 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./forcereboot
root 28151 1.0 0.0 3616 368 ? D 03:42 0:00 /sbin/reboot -f