[systemd-devel] [PATCH] shutdown: do reboot() for openvz container
Lennart Poettering
lennart at poettering.net
Mon Sep 10 18:24:06 PDT 2012
On Fri, 24.08.12 16:22, Kir Kolyshkin (kir at openvz.org) wrote:
> Proper handling of reboot() syscall issued from the inside of a container
> was always supported by OpenVZ kernels. More to say, OpenVZ relies on the fact
> that container calls reboot in order to distinguish between shutdown and
> reboot-- in the latter case container is being restarted.
>
> This patch brings the reboot() back for OpenVZ container.
Turns out the normal Linux containers understand reboot() just fine
too. I have now reworked the code to handle this properly, without any
special casing of any implementation. This should fix your issue.
Thanks for pointing this out!
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list