Date: Thu, 14 Jan 2010 13:40:59 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: jail@freebsd.org, remko@freebsd.org Subject: Re: starting jails in the background & dependencies Message-ID: <20100114134059.1929551uvux5y3wo@webmail.leidinger.net> In-Reply-To: <4B43184E.1010106@quip.cz> References: <20091207080353.66241t4vpmnmrilc@webmail.leidinger.net> <20100105112447.00005e71@unknown> <4B43184E.1010106@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Miroslav Lachman <000.fbsd@quip.cz> (from Tue, 05 Jan 2010 11:45:34 +0100): > Alexander Leidinger wrote: >> On Mon, 07 Dec 2009 08:03:53 +0100 Alexander Leidinger >> <Alexander@Leidinger.net> wrote: >> >>> Hi, >>> >>> now that jails are started in the background (which is good, to >> >> I just realized yesterday that it also stops in parallel (in the >> background). This is bad. It may be the case that a jail is not fully >> stopped via the rc scripts when the OS decides to kill the remaining >> processes during a shutdown. >> >> My first reaction is to only allow to start in the background, but >> everything else needs to be serialized. >> >> Any objections or better ideas out there? > > Maybe stopping can be done in parallel, but rc script should wait > (in loop) until all jails are stopped or some configurable timeout > (for example 60 seconds). Feel free to come up with a proof of concept... but the timeout on stop should be "forever" IMO. If you have a busy software which needs to be shutdown correctly for data safety or consistency reasons, I do not want that a reboot or shutdown prevents the correct shutdown. Bye, Alexander. -- Beware of Programmers who carry screwdrivers. -- Leonard Brandwein http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100114134059.1929551uvux5y3wo>