Hi, currently loop which should waiting for for containers stops gracefully just doesn't work: while [ -n "${missingprocs}" -a $i -lt ${TIMEOUT} ]; do sleep 1 missingprocs=$(pgrep -P ${init_pid}) i=$(expr $i + 1) done because missingprocs is not defined on first step. Reproducible: Always Steps to Reproduce: 1. create somewhat-container 2. /etc/ini.d/lxc.somewhat-container start 3. lxc-stop -nlxc.somewhat-container 4. lxc-start -nlxc.somewhat-container 5. /etc/ini.d/lxc.somewhat-container stop Actual Results: container will be stopped immediately Expected Results: container shutdown gracefully, i.e. 'shutdown -r now' initiated and init scripts have a reasonable time to stop gracefully.
Isn't this the same problem as bug #387675?
(In reply to comment #1) > Isn't this the same problem as bug #387675? no, this all about processes _inside_ the container but #387675 could send SIGINT to all of the process on the _host_, so it's much more critical.
Okay logic was changed recently and I missed something it seems; fixed now.