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@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to