From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 14:04:08 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 B9E01106564A for ; Tue, 21 Dec 2010 14:04:08 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 48D9B8FC08 for ; Tue, 21 Dec 2010 14:04:08 +0000 (UTC) Received: by wyf19 with SMTP id 19so3882135wyf.13 for ; Tue, 21 Dec 2010 06:04:07 -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=y/RqGVYe7EMmsd2AXEyJGitz+HzBRNjNZ8Pzw/Csp5E=; b=u14hyaot1+icJp8NwzTLduzMPZDAJkrN9sAG5qLLsEg5FIQE0W1By26jwOEiyFGESZ SIUSZNj1izpkX7sBRsQWIXDvcOXAW93cHAXmS6FctLvzzmMt9JjG/lcLC0+5BJXWdy+m At9yiTr0Ov2WDZW+umadmAXNrzZLKNtokcnjk= 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=QrlcGSzrc3EwDf5F88udh36qfAuGueNgmK7XIfisIDstJARwnHWo3nP0AZzQuyeaQo 3/llq6gUiHMKCqyVtfS57OOPMMUpzHFCjhYeyou12iQdz0iB98O2GOc1HuBZsO4ln2IQ sOQru4HaXSMnUwjVdN1/s0Xq/rbA7APIzFQV4= MIME-Version: 1.0 Received: by 10.216.0.140 with SMTP id 12mr4049web.29.1292940246707; Tue, 21 Dec 2010 06:04:06 -0800 (PST) Received: by 10.216.72.198 with HTTP; Tue, 21 Dec 2010 06:04:06 -0800 (PST) In-Reply-To: References: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> <4D10A393.2030008@herveybayaustralia.com.au> Date: Tue, 21 Dec 2010 14:04:06 +0000 Message-ID: From: krad To: Christer Solskogen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, Da Rock 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 14:04:08 -0000 On 21 December 2010 13:21, Christer Solskogen wrote: > 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, > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Its a shell limitation, neither bash or sh allow '-' as a valid character in a variable name $ sh $ test-car="test" test-car=test: not found $ test\car="test" testcar=test: not found $ test\\-car="test" test\-car=test: not found