I'm trying to stop container by /etc/init.d/lxc.test stop. But container "restarts" immediately after stop. So init.d thinks that container is stopped, but it is working: lxc ~ # /etc/init.d/lxc.test start * Starting test ... [ ok ] * Starting /etc/lxc/test/postup ... [ ok ] lxc ~ # lxc-info -n test state: RUNNING pid: 9480 lxc ~ # /etc/init.d/lxc.test stop * Shutting down system in test ... [ ok ] * Stopping test ... [ ok ] lxc ~ # This time in other console: lxc ~ # lxc-info -n test state: RUNNING pid: 9480 ... lxc ~ # lxc-info -n test state: STOPPED pid: -1 ... lxc ~ # lxc-info -n test state: RUNNING pid: 10480 lxc ~ # /etc/init.d/lxc.test status * status: stopped As a result, I receive restarted container instead of stopped. I think this is because init process threats SIGINT as ctrlaltdel. So there should be some other method of shutting down container.
Yes you're right — I decided to fix this by moving to PWR that was already planned anyway. I'll also update sysvinit for shutting down on it.