All of lore.kernel.org
 help / color / mirror / Atom feed
* Shutting down a container?
@ 2009-11-13 16:58 Michael Tokarev
       [not found] ` <4AFD9031.6030102-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2009-11-13 16:58 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

What's the supposed way to stop a container?

Let's assume I've a container that's running a complete
system inside, together with its own init and the like.
It should clean some stuff when "shutting down", it's
not wise to kill it right away.  So I run something like
a shutdown in the container.  And it goes up to `halt'
and just sits here, with only one process left - it's
the init process with virtual PID=1, which is reading
from it's /dev/initctl.

I tried to change /etc/init.d/halt to kill a process with
pid=1, but that does not work - apparently the signal is
ignored (even with kill -9) -- ie, init continues as if
there was no signal.

_But_, when I attempt to run strace on the ("virtual")
init process, it gets killed with `kill -9' immediately.

It also can be killed (also with -9) from the host system
regardless of strace.

Should there be some different init perhaps, that will
exit given some command or signal, instead of sysvinit?
Or is there other way to shutdown a container?

P.S.  Using debian lenny with 2.6.31.6 kernel and lxc
utils from yesterdays git.

Thanks!

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-14 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 16:58 Shutting down a container? Michael Tokarev
     [not found] ` <4AFD9031.6030102-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2009-11-13 17:58   ` Daniel Lezcano
     [not found]     ` <4AFD9E29.1030601-GANU6spQydw@public.gmane.org>
2009-11-13 20:18       ` [lxc-devel] " Andrian Nord
     [not found]         ` <20091113195229.GA2327-Ad3oKH0rFUpsEo8Uxu2CLw@public.gmane.org>
2009-11-14 11:17           ` Michael Tokarev
     [not found]             ` <4AFE91D9.10309-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2009-11-14 14:46               ` Andrian Nord

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.