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
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to