From owner-freebsd-questions@FreeBSD.ORG Fri Dec 13 05:37:09 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6ED6FB for ; Fri, 13 Dec 2013 05:37:09 +0000 (UTC) Received: from relay.mailchannels.net (si-004-i113.relay.mailchannels.net [198.20.121.30]) by mx1.freebsd.org (Postfix) with ESMTP id 6929312B3 for ; Fri, 13 Dec 2013 05:37:07 +0000 (UTC) X-Sender-Id: demandmedia|env-sender|fbsd8@a1poweruser.com Received: from mail-24.name-services.com (ip-10-244-196-74.us-west-2.compute.internal [10.244.196.74]) by relay.mailchannels.net (Postfix) with ESMTPA id 4416944BD6; Fri, 13 Dec 2013 02:08:35 +0000 (UTC) X-Sender-Id: demandmedia|env-sender|fbsd8@a1poweruser.com Received: from mail-24.name-services.com (mail-24.name-services.com [10.246.16.22]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.0.19); Fri, 13 Dec 2013 02:08:35 GMT X-MC-Relay: Neutral X-MailChannels-SenderId: demandmedia%7Cenv-sender%7Cfbsd8%40a1poweruser.com X-MailChannels-Auth-Id: demandmedia Received: from [192.168.101.132] (UnknownHost [111.125.78.55]) by mail-24.name-services.com with SMTP; Thu, 12 Dec 2013 18:08:27 -0800 Message-ID: <52AA6C0A.30104@a1poweruser.com> Date: Fri, 13 Dec 2013 10:08:10 +0800 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Beeblebrox Subject: Re: Unbound in jail References: <1386424991855-5866649.post@n5.nabble.com> <1386869525130-5867937.post@n5.nabble.com> In-Reply-To: <1386869525130-5867937.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 05:37:10 -0000 Beeblebrox wrote: > How is unbound supposed to start from /etc/rc.conf? Neither of these work: > unbound_enable="YES" > local_unbound_enable="YES" > > The only way I can start unbound is, after jail starts then > jexec unbound > > Why does the /etc/rc.conf setting not work? > > > > ----- > FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS > -- Boy you are really at the bleeding edge. How jails work has changed a great deal over the past few releases, [9.1, 9.2, 10.0}. IE. massive fixes to jail(8) program, the rc.d scripts patched to auto change rc.conf jail definitions to jail.conf definitions on the fly, and the list goes on. Recommendations 1.. create a single jail.conf file for each jail. 2.. be sure each jail.conf contains these statements exec.start = "/bin/sh /etc/rc\" exec.stop = "/bin/sh /etc/rc.shutdown\" 3.. use this jail start command format /usr/sbin/jail -q -f "path/jailname_jail_conf}" -c 4.. use this jail stop command format /usr/sbin/jail -q -f "path/jailname_jail_conf}" -r jailname 5 put unbound_enable="YES" in the rc.conf in the jail filesystem where you have installed it. 6.. all ways issue the host shutdown command to have jails close in controlled manner or issue jail close command for each jail before doing power off or issuing halt command on host. Check out this article and review the included scripts. Its accurate as of 9.2, 10.0 changes should not effect what is written in the article about the jail(8) world, but does greatly effects what is written about the rc.d jail world. 10.0 is the first phase in depreciating the rc.d jail world, so best to make the move to using jail(8) world now. http://www.a1poweruser.com/35.00-Jails_guide_article.php Good Luck