From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 05:24:37 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A59C9E3 for ; Thu, 24 Jul 2014 05:24:37 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A66652529 for ; Thu, 24 Jul 2014 05:24:36 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id d1so8962370wiv.1 for ; Wed, 23 Jul 2014 22:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=WuY5tQFh2sKTeWywp7hJOoXUe+skFs8ClHzgMlR5GEI=; b=swHAGUwvre99VsQ9BeruyDAJE4kc0uRMjH6BRSyivm/3ZGmpuR1hC6gF1xq9+/zHNW Ee69HT6FjVVwE5DQDguc0nZEqYlwTSG0iEYJa2ni8e7YwFp1t04AXbTJgYpKN8WsFMIZ zZwiG7c+7GW4O6s5zrL8Lv+MSXxF/fN2UapPVYZamAMHtESTmuglF9lD4ZKG4lIwUyFh tgGtUSwzocBLtpdO3BWIi+qofvRj8+zAJji0HBAf/hbvvTX8ytUGn1T01oJzJAYIjFiX HdhKJx9NFvljh7Pxb27/84ht735WoDAASbXK8UDtANDjvME8xES85HWZ5MK6hqqtOTex JvrA== X-Received: by 10.194.158.101 with SMTP id wt5mr8453314wjb.136.1406179474853; Wed, 23 Jul 2014 22:24:34 -0700 (PDT) MIME-Version: 1.0 Sender: zhao6014@gmail.com Received: by 10.194.153.225 with HTTP; Wed, 23 Jul 2014 22:24:14 -0700 (PDT) In-Reply-To: <20140724034118.GA86589@neutralgood.org> References: <20140723162119.GA46908@neutralgood.org> <201407231333010555.00FDB5EB@smtp.24cl.home> <20140724034118.GA86589@neutralgood.org> From: Jov Date: Thu, 24 Jul 2014 13:24:14 +0800 X-Google-Sender-Auth: I5W2Ri1jmJCArHY-MGAGuGl-_vw Message-ID: Subject: Re: run sh rc cause two cron process running To: kpneal@pobox.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: "Mike." , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2014 05:24:37 -0000 Thanks for all your advice,I will not run sh rc in the future. In the fact,most time I use the /etc/rc.d/xx stop|start to test the configure.But Sometimes I do not sure wich file I should run,or what command I should run,and I find sh rc is handy.For example: ntpdate_enable="YES" cloned_interfaces="lo1" ipv4_addrs_lo1="192.168.2.1-4/29" I can't find ntpdate in /etc/rc.d,and I am not familiar with ifconfig command. If some one run sh rc,is it possible report a warning? I find the sh rc on the web,I am sure some one else use it. Jov blog: http:amutu.com/blog 2014-07-24 11:41 GMT+08:00 : > On Wed, Jul 23, 2014 at 01:33:01PM -0400, Mike. wrote: > > On 7/23/2014 at 12:21 PM kpneal@pobox.com wrote: > > |If you want to test the entire boot process then you have no real choice > > |except to reboot. But I will say that in all my years I've never created > > |a problem simply by editing rc.conf that required testing with a reboot. > > | > > |I have made changes that required testing with a full reboot, but there > > was > > |more to that than changing rc.conf. > > ============= > > > > > > > > After I make changes to rc.conf, I always run > > > > sh -n rc.conf > > > > to check for syntax errors, e.g., a missing quote, which can have a less > > than positive effect upon the boot process. > > A habit I've found helpful is to, whenever I open a quote/brace/bracket, > always go ahead and add the close. Then go back and add in the middle > the desired content. > > This basically eliminates the entire class of missing closing character > errors. > -- > Kevin P. Neal http://www.pobox.com/~kpn/ > "14. Re-reading No. 13, I realize that it's quite possible I'm losing my > mind. I'm glad that for the most part I'm not aware it's happening." > -- from "20 things I'm thankful for": Fortune, Nov 29, 2004, page 230 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >