Date: Tue, 29 Aug 2017 11:01:47 -0400 From: Ernie Luzar <luzar722@gmail.com> To: Yuri Pankov <yuripv@gmx.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: reread rc.conf without rebooting Message-ID: <59A581DB.10402@gmail.com> In-Reply-To: <4f253592-7d81-29c6-7e94-a0fd4d6cba58@gmx.com> References: <59A57538.2080806@gmail.com> <49637.128.135.52.6.1504016315.squirrel@cosmo.uchicago.edu> <59A57B99.6030702@gmail.com> <4f253592-7d81-29c6-7e94-a0fd4d6cba58@gmx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yuri Pankov wrote: > On Tue, 29 Aug 2017 10:35:05 -0400, 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? > > Just (re)start relevant services, e.g., `service local_unbound restart`. > . > If the local_unbound service is not all ready running the "service local_unbound restart" command does not work. My problem is with the built in unbound. Testing has proven that issuing "service local_unbound onestart" before unbound has been first started by a reboot is causing config problem generated by unbound first time only setup script. In general here is the big picture. unbound replaced bind as the built in dns application starting with release 10.0. Here we are 5 releases later and it looks like it has never worked from the get go. The only people who have used unbound have installed the port version because they could not get the built in version to work. I am trying to debug what is wrong with the config setup for the built in version. So the answer to my original question is, there is NO way to cause the rc.conf file to be reread and re-processed without a reboot.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59A581DB.10402>