Restarting Containers
You can restart Containers from the inside using typical Linux commands, e.g.,
reboot
or
shutdown -r
. Restarting is handled by the
vzeventd
daemon.
If necessary, you can forbid restarting Containers from the inside as follows:
-
To disable restarting for a specific Container, add the
ALLOWREBOOT="no"
line to the Container configuration file (
/etc/vz/conf/
<CT_ID>
.conf
).
-
To disable restarting globally for all Containers on the server, add the
ALLOWREBOOT="no"
line to the global configuration file (
/etc/vz/vz.conf
).
-
To disable restarting globally except for specific Containers, add the
ALLOWREBOOT="no"
line to the global configuration file (
/etc/vz/vz.conf
) and explicitly specify
ALLOWREBOOT="yes"
in the configuration files of the respective Containers.
|