Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2011 17:13:00 -0500
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        Jamie Gritton <jamie@freebsd.org>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: New jail(8) with configuration files, not yet in head
Message-ID:  <CALBk6yLEnJuBQnwdDracAScGj8hsopoK8enQTE=v5Tr9qSoXmQ@mail.gmail.com>
In-Reply-To: <4E123594.6030304@FreeBSD.org>
References:  <4E114EA9.4000605@FreeBSD.org> <CALBk6y%2BYWzOUzju-yN-bREX=4PY1pfhqX=QhW3K2qAExXkn8Mg@mail.gmail.com> <4E123594.6030304@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 4, 2011 at 4:50 PM, Jamie Gritton <jamie@freebsd.org> wrote:
> Oh, never good when "(null)" shows up. I'll see what I'm trying to run
> that isn't there.
>
> - Jamie
>
>
> On 07/04/11 15:36, Brandon Gooch wrote:
>>
>> I did however notice a minor nit in the output when removing a jail.
>> Here's the scenario:
>
> ...
>>
>> Now, when I go to remove the jail:
>>
>> # jail -r ports
>> Stopping cron.
>> Waiting for PIDS: 29824.
>> Terminated
>> .
>> jail: ports: (null): failed
>>
>> I don't think it's anything to worry about, as the jail does indeed
>> get removed. I wonder though if this might be a indicator of some
>> underlying problem I haven't ran into yet with my simplistic testing.
>

Thanks for checking it out. Here's another take on perhaps the same
underlying issue.

If I've jexec'd into the jail, say something like this:

# jexec testjail /bin/tcsh

and then I try removing the jail from another terminal (jail -r
testjail), the jail -r command hangs for about 15-20 seconds, I
suppose waiting for the jexec'd shell to exit, before finally killing
the jail off outright. I don't see the aforementioned behavior (jail:
testjail: (null): failed).

Here's what it looks like:

# jail -r ports
Stopping ftpd.
Waiting for PIDS: 32845.
Stopping cron.
.
Terminated
^T
load: 0.19  cmd: jail 32860 [kqread] 1.05r 0.00u 0.00s 0% 1696k
^T
load: 0.09  cmd: jail 32475 [kqread] 10.09r 0.00u 0.00s 0% 1692k

...then testjail is finally "Killed". Some sort of race condition maybe?

-Brandon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALBk6yLEnJuBQnwdDracAScGj8hsopoK8enQTE=v5Tr9qSoXmQ>