[Lxc-users] Does lxc-stop shut down services gracefully?
Johannes Graumann
johannes_graumann at web.de
Fri Aug 30 20:05:37 UTC 2013
Serge Hallyn wrote:
> Quoting Johannes Graumann
> (johannes_graumann at web.de):
>> Hi,
>>
>> Is using "lxc-stop -n <CONTAINER>" on a host equivalent to running
>> "shutdown" within the container, meaning services are put to rest
>> gracefully etc?
>>
>> I'm in the process of scripting backup infrastructure for containers
>> running DBs (plone, mysql) and would like to avoid db corruption ...
>>
>> Thanks for any pointers.
>
> Depends on your lxc version.
>
> If yours does, then the lxc-stop manpage will have text like:
>
> By default, it will request a clean shutdown of the container (by
> sending SIGPWR to the container), wait 60 seconds for the container to
> exit, and returns.
As my debian has lxc version: 0.9.0.alpha3 and the man page contains no such
text, I guess it just kills ... also takes nowhere close to 60 sec...
I guess I will have to ask for an explicit shutdown then ...
Sincerely, Joh
More information about the lxc-users
mailing list