[lxc-users] Graceful Shutdown/Reboot

Marat Khalili mkh at rqc.ru
Mon Feb 6 14:14:10 UTC 2017


I suggest you to look for shutdown messages in the service log file, 
e.g. /var/log/mysql/error.log . I expect all sane distributions to at 
least try to stop all containers (as well as other processes) gracefully 
and give them some time to finish their work. However, I suppose it is 
possible to install and run LXC in a way that containers won't close 
correctly, so it makes sense to check first.


--

With Best Regards,
Marat Khalili

On 06/02/17 16:36, Brett 11 wrote:
>
> Hi guys. Forgive me if this question has been answered before. I 
> couldn't find it..
>
>
> When I shutdown/reboot the HOST, does LXC gracefully shutdown the 
> containers and their services automatically? Or should they always be 
> shutdown manually or via script before HOST shutdown/reboot?
>
>
> I have a container running MySQL for example and have been using 
> 'lxc-stop' before I shutdown the host. I really don't want to assume 
> the host can gracefully shutdown the container & MySQL so it would be 
> nice to know 'for sure'.
>
>
> Thanks to all who can help!
>
> Brett
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170206/688f866b/attachment.html>


More information about the lxc-users mailing list