From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 13:21:02 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 799A2106564A for ; Tue, 21 Dec 2010 13:21:02 +0000 (UTC) (envelope-from christer.solskogen@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2833D8FC0C for ; Tue, 21 Dec 2010 13:21:01 +0000 (UTC) Received: by qwj9 with SMTP id 9so3763819qwj.13 for ; Tue, 21 Dec 2010 05:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=A0Q1Try7UXRAlvs4BSz4yGzqCsZfc9uKOf/xR/tXe10=; b=HXWti3dlBrGYCRq7lKDGYTWleqZOqsrsImUR4fRp/CPhdxDLUz6k67VrLfZLZ1ao4b d3ROsvgFWZ0fLfIVKKKZ5ufH3Y9w2WbJcp87LlCUzCHpK+5o/PvSJyL9x+egdKAE0V8Y VdyaD7n7lOebceLmUnRxOjUbRapbVP/o18WbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=czU2ZgjMMFl4AaUxQRqKAE7TFvdTFbzRqeVEjdpEfqeISJ4dBpK/B5RPJLRH0vZj9B B0JkggETqAq0OKkRWWU4b/n2fBQYa1Q7p2Fv1Zu48FdRm/SVZA5SrPW4YrF1/axUorqy WJGlr+mWFZs8FS1e4VRfw+eqfa2vkdykam2/g= MIME-Version: 1.0 Received: by 10.229.220.144 with SMTP id hy16mr4718608qcb.80.1292937661122; Tue, 21 Dec 2010 05:21:01 -0800 (PST) Received: by 10.229.90.211 with HTTP; Tue, 21 Dec 2010 05:21:01 -0800 (PST) In-Reply-To: <4D10A393.2030008@herveybayaustralia.com.au> References: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> <4D10A393.2030008@herveybayaustralia.com.au> Date: Tue, 21 Dec 2010 14:21:01 +0100 Message-ID: From: Christer Solskogen To: Da Rock Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org 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 13:21:02 -0000 On Tue, Dec 21, 2010 at 1:54 PM, Da Rock wrote: > 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. Hence my email :-) This is how my rc.conf looks now: #jail configuration for forest-friend jail_forest-friend_rootdir="/usr/jails/forest-friend" jail_forest-friend_hostname="forest-friend" jail_forest-friend_ip="192.168.0.15" But still: [root@cheer /usr/local/share/jailcfg/templates/default/etc]# /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) -- chs,