The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forceful server reboot on VPS

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

  1. Karateka

    Karateka Active Member

    Joined:
    Apr 14, 2003
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Austin, Texas
    cPanel Access Level:
    Root Administrator
    Twitter:
    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
    Code:
    /usr/share/vzctl/scripts/vpsreboot
    (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
    Code:
    /etc/rc.d/rc6.d/S01reboot
    and added
    Code:
    >/reboot
    just after
    Code:
    # 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:

    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
    So my question is: How do I get the /reboot file created when a forceful server reboot is done through WHM?
     
Loading...

Share This Page