[Lxc-users] shutting down CentOS6 container
Papp Tamas
tompos at martos.bme.hu
Mon Oct 17 21:01:34 UTC 2011
On 10/17/2011 10:54 PM, Derek Simkowiak wrote:
> > /I tried the python script, it just works fine./
>
> Q1: How does the "kill -INT init" method affect running processes,
> especially MySQL and other databases that may need to shutdown
> gracefully to avoid data corruption?
>
> I believe that the child processes (incl. mysqld, apache, etc.)
> would be able to shutdown gracefully without data corruption, because
> they'd be killed with a signal that will invoke their internal signal
> handlers. But, I am looking for independent confirmation.
That's right.
> Q2: How is lxc-stop -n $CONTAINERNAME different from the Python
> script mentioned below? Will lxc-stop on a container cause an unclean
> shutdown, or does it also use a Unix signal?
lxc-stop is part of the script.
If I'm right it's equivalent of pushing the power button of the machine.
t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111017/4b081125/attachment.html>
More information about the lxc-users
mailing list