[Lxc-users] Does lxc-stop shut down services gracefully?

Serge Hallyn serge.hallyn at ubuntu.com
Fri Aug 30 19:55:58 UTC 2013


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.




More information about the lxc-users mailing list