starting jails in the background & dependencies

Miroslav Lachman 000.fbsd at quip.cz
Tue Jan 5 10:45:39 UTC 2010


Alexander Leidinger wrote:
> On Mon, 07 Dec 2009 08:03:53 +0100 Alexander Leidinger
> <Alexander at 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).

Miroslav Lachman


More information about the freebsd-jail mailing list