From owner-freebsd-questions@freebsd.org Sun Sep 3 12:13:52 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D160CE0889A for ; Sun, 3 Sep 2017 12:13:52 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E2F569D0B for ; Sun, 3 Sep 2017 12:13:52 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [192.168.1.35] (host86-191-18-76.range86-191.btcentralplus.com [86.191.18.76]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id v83CDo64058493 for ; Sun, 3 Sep 2017 13:13:50 +0100 (BST) (envelope-from frank2@fjl.co.uk) Subject: Re: reread rc.conf without rebooting To: freebsd-questions@freebsd.org References: <59A57538.2080806@gmail.com> <49637.128.135.52.6.1504016315.squirrel@cosmo.uchicago.edu> <59A57B99.6030702@gmail.com> From: Frank Leonhardt Message-ID: <7ccfe875-6834-0636-29ca-db089b0cf25e@fjl.co.uk> Date: Sun, 3 Sep 2017 13:13:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <59A57B99.6030702@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Sep 2017 12:13:52 -0000 On 29/08/2017 15:35, Ernie Luzar wrote: > Valeri Galtsev wrote: >> On Tue, August 29, 2017 9:07 am, Ernie Luzar wrote: >>> After making changes to /etc/rc.conf is there some way to make the host >>> reread it without rebooting? >> >> I only know one way to do it: apply each change (one at a time) by >> executing relevant command from shell. Why does that not suite you? >> You do >> test (from shell) what is the effect of each change, right? >> >> Valeri >> > > You did not understand correctly meaning of post. > > I added local_unbound_enable="YES" to rc.conf > > It's my understanding that rc.conf is only read at boot time to config > services on host. > > Question is. Is there some other way to make tis happen without > rebooting? Hi Valeri, I understand what you mean. I have wanted to be able to do this for a very long time but I have never found a way. init (process 1) runs all the rc scripts, and AFIK is responsible for parsing them. Restarting /sbin/init is almost as drastic and rebooting, and probable less likely to work! The problem is that when you experiment starting and stopping services with /etc/rc.d/xxxx or the new service command it is difficult to be sure you have put the working commands in /etc/rc.conf. The syntax is different and it is also easy to make a mistake when typing. You CAN put startup configuration lines in /etc/rc.local and run this any time you like, but it is run at a different time during startup so it is not a perfect solution. However, you do know that exactly the same thing will happen at startup. Regards, Frank.