From owner-freebsd-stable@FreeBSD.ORG Thu May 24 22:14:12 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 143911065680 for ; Thu, 24 May 2012 22:14:12 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 9273A8FC0A for ; Thu, 24 May 2012 22:14:11 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so229562wib.13 for ; Thu, 24 May 2012 15:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=FistCCTEvJSwPvLXnaCw/jDok6/q+qOXnMwnYQwxdGE=; b=di1misSaiSS1A9G/GfI1Pi3Yc7qxlaLpba/cnCCoSA0+VF2mxcztiCsltgs4LBiVk1 F88pntlmztCQsvkPkGlMTjB+sAavp8ArTkVCQx3069Vx2X5EyCNAo7UefGFmfNwX0mUz BikhQimqeIR5gdlky8kyr7CkC2wY18AFk1lfWjDN7wirVyNqJavBNyZ5nYkRG0I5ZWvM Y7x/jXUnpyHUztg2qOyYXcqhGE6zM6ZnPCyqeiGW/Cmny1BkRBl3F7F/yGbtc25Dbod2 5k2H4+uknroHx/TsHZ4mXR0RzkV+yAyUfGfuFu1iivP5pqIYKPN1rf7J8Y4RL0TJ+9lo CRuQ== Received: by 10.180.99.195 with SMTP id es3mr2104119wib.12.1337897644995; Thu, 24 May 2012 15:14:04 -0700 (PDT) Received: from dft-labs.eu (dft-labs.eu. [80.87.128.179]) by mx.google.com with ESMTPS id az1sm11597294wib.0.2012.05.24.15.14.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 15:14:03 -0700 (PDT) Date: Fri, 25 May 2012 00:13:53 +0200 From: Mateusz Guzik To: Mike Jakubik Message-ID: <20120524221353.GB17579@dft-labs.eu> References: <1337887134.1908.20.camel@mike-PC> <20120524212219.GA17579@dft-labs.eu> <1337897210.1908.24.camel@mike-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1337897210.1908.24.camel@mike-PC> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-stable@freebsd.org" Subject: Re: Jail startup/shutdown broken on latest 9-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 22:14:12 -0000 On Thu, May 24, 2012 at 06:06:50PM -0400, Mike Jakubik wrote: > On Thu, 2012-05-24 at 23:22 +0200, Mateusz Guzik wrote: > > On Thu, May 24, 2012 at 03:18:54PM -0400, Mike Jakubik wrote: > > > Hello, > > > > > > Latest 9-STABLE has introduced some changes that break the ezjail rc > > > script. On bootup it fails to start, but when i log in via ssh and > > > manually start it, it works. However i am unable to shut them down > > > afterwards. > > > > > Try this: > > http://student.agh.edu.pl/~mjguzik/patches/jail-startup-shutdown.patch > > > > cd /usr/src && patch -p1 < patch && cd usr.sbin/jail && make && make install > > > > /usr/src/etc/rc.d/jail script can be just copied over. > > > > Note that your /var/run/jail_* files have broken content (some line from > > /etc/rc's output instead of jail id). > > > > Mateusz, > > Thanks for the patch, it fixes the startup issue on boot, however > shutting down the jails still does not work. The /var/run files have > garbage in them as you mentioned. > > root@jail.local:~# cat /var/run/jail_app.id > /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). > > > Hostname is set in /etc/rc.conf. This message is about rc.conf from your jail. This should be fixed by my change to etc/rc.d/jail, are you sure that you are running patched version? -- Mateusz Guzik