From owner-freebsd-jail@FreeBSD.ORG Mon Jul 4 22:13:02 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06CCF106564A; Mon, 4 Jul 2011 22:13:02 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6F1508FC12; Mon, 4 Jul 2011 22:13:01 +0000 (UTC) Received: by wwe6 with SMTP id 6so5242125wwe.31 for ; Mon, 04 Jul 2011 15:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Wo+5JS/n39j/v4ceRM2zVDJrzYKcw7gNnoa7kQdmBqs=; b=sGiScwKMGpmgm5fJCJNprZL7EMMDLM5l2mS0zDbulxxoyqAX9wODxp5+tEys2o5RdY ASZVEn60Kx2gZy+y2ubdGCr3U4UOWMYlYPoxez4JYYhm1SkrzusIbbM58LCvi2zP5/2C o9R0aXnjU3xVcZSgG/YCFw06dnj/yzxN2Epc8= MIME-Version: 1.0 Received: by 10.216.50.134 with SMTP id z6mr3873004web.52.1309817580078; Mon, 04 Jul 2011 15:13:00 -0700 (PDT) Received: by 10.217.5.197 with HTTP; Mon, 4 Jul 2011 15:13:00 -0700 (PDT) In-Reply-To: <4E123594.6030304@FreeBSD.org> References: <4E114EA9.4000605@FreeBSD.org> <4E123594.6030304@FreeBSD.org> Date: Mon, 4 Jul 2011 17:13:00 -0500 Message-ID: From: Brandon Gooch To: Jamie Gritton Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-jail@freebsd.org Subject: Re: New jail(8) with configuration files, not yet in head X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 22:13:02 -0000 On Mon, Jul 4, 2011 at 4:50 PM, Jamie Gritton 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