From owner-freebsd-stable@FreeBSD.ORG Thu May 24 21:22:33 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 65025106564A for ; Thu, 24 May 2012 21:22:33 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E47C78FC0C for ; Thu, 24 May 2012 21:22:32 +0000 (UTC) Received: by werg1 with SMTP id g1so202653wer.13 for ; Thu, 24 May 2012 14:22:32 -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=v3vF6CQhvOOWocmMMPpQF4ioRisR4O4SAU4GIeEPgsw=; b=bubXPd2sdtSqtBFM4eOfVjEFCq/2mjzmTDcOKn1sI8q5CzxD0hAX4kKfDNnyUws7iY YMw1KMT2lcbBCLsm4V5p8hatQizV3WUc2f6SE5zHAUIyK/Fp90K5Czhn7hi5Bwk74MWP IqD6xfW+Q+1b654jpa5Ouevb5l2WeCJxMsE7weiLdml+kUPLbuGddegb1EZ6bCv6dyjQ zTZHqKb4Ra2kIzJDI1RLUZsh2Fr5/cstB8t07Y6eaCjlffG7q6j2qwIDQZ8UnJ1WXDRc D2n1G13I9FUSIQj2fiPRqcFUDg43AHOjOKkaRX+jb/5xAPzsNThlfJxM6ObLGlaW/fYz yEWg== Received: by 10.180.106.137 with SMTP id gu9mr1871153wib.8.1337894551881; Thu, 24 May 2012 14:22:31 -0700 (PDT) Received: from dft-labs.eu (dft-labs.eu. [80.87.128.179]) by mx.google.com with ESMTPS id e20sm45359334wiv.7.2012.05.24.14.22.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 14:22:30 -0700 (PDT) Date: Thu, 24 May 2012 23:22:19 +0200 From: Mateusz Guzik To: Mike Jakubik Message-ID: <20120524212219.GA17579@dft-labs.eu> References: <1337887134.1908.20.camel@mike-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1337887134.1908.20.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 21:22:33 -0000 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. > > > root@jail.local:~# uname -a > FreeBSD jail.local 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu May 24 12:50:04 > EDT 2012 root@jail.local:/usr/obj/usr/src/sys/JAIL amd64 > > > Boot: > > ezJailConfiguring jails:. > Starting jails: cannot start jail "game": > -1 > cannot start jail "app": > -1 > > /var/log/messages: > > May 24 15:05:30 jail kernel: pid 1276 (jail), uid 0: exited on signal 11 > May 24 15:05:30 jail kernel: pid 1343 (jail), uid 0: exited on signal 11 > [..] > > root@jail.local:~# jls > JID IP Address Hostname Path > 3 10.57.227.100 game.local /jails/game > 4 10.57.227.99 app.local /jails/app > > > (can not stop jails now) > > root@jail.local:~# /usr/local/etc/rc.d/ezjail stop > ezjailStopping jails: app.local game.local. > > root@jail.local:~# jls > JID IP Address Hostname Path > 3 10.57.227.100 game.local /jails/game > 4 10.57.227.99 app.local /jails/app > > root@jail.local:~# /usr/local/etc/rc.d/ezjail stop > ezjailStopping jails: cannot stop jail app. No jail id in /var/run > cannot stop jail game. No jail id in /var/run > > (same behaviour occurs when i use the base /etc/rc.d script to start/stop the jails) > 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 Guzik