From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 12:58:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FCE1106566B for ; Tue, 21 Dec 2010 12:58:20 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 5527F8FC18 for ; Tue, 21 Dec 2010 12:58:20 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.193]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 916695C21 for ; Tue, 21 Dec 2010 23:03:11 +1000 (EST) Message-ID: <4D10A393.2030008@herveybayaustralia.com.au> Date: Tue, 21 Dec 2010 22:54:43 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101119 Thunderbird/3.0.10 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: A jail with a dash in its name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 12:58:20 -0000 On 12/21/10 22:48, Christer Solskogen wrote: > On Tue, Dec 21, 2010 at 1:11 PM, Robert Bonomi wrote: > >> That statement appears to be a shell variable assignment, yet the >> error message indicates that the system is trying to find an executable >> by the name of the entire expression. >> >> You need to show us the actual line in /etc/rc.conf _and_ the surrounding >> context. >> >> > part of rc.conf: > > jail_forest-friend_rootdir=/usr/jails/forest-friend > jail_forest-friend_hostname=forest-friend > jail_forest-friend_ip=192.168.0.15 > > cheer# /etc/rc.d/jail > /etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not found > jail_forest-friend_hostname=forest-friend: not found > jail_forest-friend_ip=192.168.0.15: not found > Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar) > > > I believe what was referred to earlier was the lack of quotes- as in "". The rc variables in the conf are strings, so your rc.conf should have this: jail_forest-friend_rootdir="/usr/jails/forest-friend" jail_forest-friend_ip="192.168.0.15" However, whether or not a hyphen is allowed in the jail name is another matter. Yes a hyphen is allowed in a hostname, but in the rc.conf the hostname is set in a string (as mentioned before). Also, the jail name and hostname don't need to be the same thing.