Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Forceful server reboot on VPS

Discussion in 'General Discussion' started by Karateka, Apr 14, 2008.

  1. Karateka

    Karateka Active Member

    Apr 14, 2003
    Likes Received:
    Trophy Points:
    Austin, Texas
    cPanel Access Level:
    Root Administrator
    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
    # Kill all processes.
    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:

    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
    So my question is: How do I get the /reboot file created when a forceful server reboot is done through WHM?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice