From owner-freebsd-questions@freebsd.org Tue Aug 29 15:01: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 1A6D5DDDA65 for ; Tue, 29 Aug 2017 15:01:52 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x242.google.com (mail-io0-x242.google.com [IPv6:2607:f8b0:4001:c06::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D353365A24 for ; Tue, 29 Aug 2017 15:01:51 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x242.google.com with SMTP id j99so3952490ioo.4 for ; Tue, 29 Aug 2017 08:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=osOngYhBALTtPYU56J2O8QEdtroGI7e7EOFBucff7JM=; b=X6gppruCoEFaankjzwdWUbIpYzS/tJmvjec3DeCKNltJHkDwBPgsUjPAaX/2P79SLA xTFBafAfA74uxDXUcL255Ze37OPehrwFt4M+vzx+ht6tWazCwgokeYcP6VnIYstr8zOh 2jx+EG82fs6a83toWIOH7uyX9w3Ghde9tP/yy4mRuPYHBpO05qT04hJ/5QBZ/j3XZMKE MZodyiChMlMBxQ1ql7tDEi4DjXOdognSUrUYqYWXy0j28tDyP0IUPMRYWsiK5fJaSmHc FalZI38pcxtoXqyKt89wg4hm7rzidLJGBFc6Njf9H6CZZQcbi+WQeWI6coMliqvAKzW8 RzYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=osOngYhBALTtPYU56J2O8QEdtroGI7e7EOFBucff7JM=; b=BkxuFHjr6naIr4h1tL0a14I3e2jOgByDiTukONtJembuSoacZAZFiXF4NODNzG0W2v 0VK+vK4b+MLwaWAnJR2WhjwMdKElquZpl+5wTOVeDNNbVilPe6e9Q6KyUrU1tYgDQyl+ 8yW7A4XkB70D7UzXGaryLDfctF0icGiNREpNlaEVF1t0RJ1RsHnnFG4nkrRz8ax1s3Bm vMs+EiZ6yZKm6Ne20R/dy/mXi3nZxJb04T9l+U/rZhaF8ZIfjhLpA1FEb4pFIx1LiLb4 5oAPWT5VnU0+5KP872o4BNjL2kFLHqmqhc9C3QFuutHYjWTIKIXqwd+yirIw15K5vhJw Zbug== X-Gm-Message-State: AHYfb5jYgumtqq5UDVsmG45fv2x04JhjX871vxsw/2oTxEGfVGlU65IP nDH0dsnOruXeBcea X-Received: by 10.36.244.9 with SMTP id d9mr2417157iti.103.1504018911339; Tue, 29 Aug 2017 08:01:51 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-147.neo.res.rr.com. [74.141.88.147]) by smtp.googlemail.com with ESMTPSA id k4sm970646iti.5.2017.08.29.08.01.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Aug 2017 08:01:50 -0700 (PDT) Message-ID: <59A581DB.10402@gmail.com> Date: Tue, 29 Aug 2017 11:01:47 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Yuri Pankov CC: freebsd-questions Subject: Re: reread rc.conf without rebooting 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> In-Reply-To: <4f253592-7d81-29c6-7e94-a0fd4d6cba58@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 29 Aug 2017 15:01:52 -0000 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.