
Operations on Virtual Private Servers
38
vzctl
has a two-minute timeout for the VPS shutdown scripts to be executed. If the VPS is not
stopped in two minutes, the system forcibly kills all the processes in the Virtual Private Server.
The Virtual Private Server will be stopped in any case, even if it is seriously damaged. To avoid
waiting for two minutes in case of a Virtual Private Server that is known to be corrupt, you may
use the
--fast
switch:
# vzctl stop 101 --fast
Stopping VPS ...
VPS was stopped
VPS is unmounted
Make sure that you do not use the
--fast
switch with healthy VPSs, unless necessary, as the
forcible killing of VPS processes may be potentially dangerous.
The
vzctl start
and
vzctl stop
commands initiate the normal Linux OS startup or
shutdown sequences inside the Virtual Private Server. In case of a Red Hat-like distribution,
System V initialization scripts will be executed just like on an ordinary computer. You can
customize startup scripts inside the Virtual Private Server as needed.
To restart a Virtual Private Server, you may as well use the
vzctl restart
command:
# vzctl restart 101
Restarting VPS
Stopping VPS ...
VPS was stopped
VPS is unmounted
Starting VPS ...
VPS is mounted
Adding IP address(es): 10.0.186.101
VPS start in progress...