Date: Fri, 13 Dec 2013 10:08:10 +0800 From: Fbsd8 <fbsd8@a1poweruser.com> To: Beeblebrox <zaphod@berentweb.com> Cc: freebsd-questions@freebsd.org Subject: Re: Unbound in jail Message-ID: <52AA6C0A.30104@a1poweruser.com> In-Reply-To: <1386869525130-5867937.post@n5.nabble.com> References: <1386424991855-5866649.post@n5.nabble.com> <1386869525130-5867937.post@n5.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <number> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52AA6C0A.30104>