From owner-freebsd-jail@FreeBSD.ORG Fri Mar 9 20:45:06 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AC50106566B for ; Fri, 9 Mar 2012 20:45:06 +0000 (UTC) (envelope-from thomas@gibfest.dk) Received: from mail.tyknet.dk (mail.tyknet.dk [IPv6:2a01:4f8:141:52a3:186::]) by mx1.freebsd.org (Postfix) with ESMTP id AB1EC8FC14 for ; Fri, 9 Mar 2012 20:45:05 +0000 (UTC) Received: from [10.20.15.22] (out1.hq.siminn.dk [195.184.109.1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.tyknet.dk (Postfix) with ESMTPSA id 9DC62A074A for ; Fri, 9 Mar 2012 21:45:03 +0100 (CET) X-DKIM: OpenDKIM Filter v2.4.1 mail.tyknet.dk 9DC62A074A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gibfest.dk; s=default; t=1331325904; bh=F3REuassV/jIKN3t5UtAdL6He843UN6sOHUh/qWUFxU=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=iH6ynrSL1hFy21gLmDy1gqkUiBvJHjoDWmKZ6Vq2KqLHCMyMF6F/nJbVNvJY3rP3s AK6spEBsOOb+fo5Jb4kXECy3ehxcaHY0SUzJjbdDM2vb0V74zw/xpRiqL9mxHKvLla E+HCWZhRoUXk8kMoG5/SfDug66qAxyqomgcsJjTg= Message-ID: <4F5A6BCE.7060108@gibfest.dk> Date: Fri, 09 Mar 2012 21:45:02 +0100 From: Thomas Steen Rasmussen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: <4F5932FB.4060909@gibfest.dk> In-Reply-To: <4F5932FB.4060909@gibfest.dk> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Using jail name in rctl(8) doesn't work - jail id works 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: Fri, 09 Mar 2012 20:45:06 -0000 On 08-03-2012 23:30, Thomas Steen Rasmussen wrote: > Hello, > > When I specify an rctl(8) rule for a jail using > the jail name it doesn't work. Displaying > resource usage doesn't work either, when > using the jail name, like "rctl -hu jail:myjail" > > On the other hand, if I run "rctl -hu jail:3" > where 3 is the jail id, it works as expected. > > The manpage examples use the jail name so > it should work. Any idea why it doesn't ? I am > using 9.0-REL on this system. > > Should I submit a PR with relevant examples ? Hello, I submitted the PR which has more information. jexec(8) is also unable to convert the jail name to jail id on this sıstem. My jails are created and started using ezjail, if that matters. Link to the PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=165886 Thanks, Thomas Steen Rasmussen