<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 10/17/2011 10:54 PM, Derek Simkowiak wrote:
<blockquote cite="mid:4E9C960C.5010007@simkowiak.net" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
> <i>I tried the python script, it just works fine.</i><br>
<br>
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?<br>
<br>
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.<br>
</blockquote>
<br>
That's right.<br>
<br>
<blockquote cite="mid:4E9C960C.5010007@simkowiak.net" type="cite">
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?<br>
</blockquote>
<br>
lxc-stop is part of the script.<br>
If I'm right it's equivalent of pushing the power button of the
machine.<br>
<br>
t<br>
</body>
</html>