From owner-freebsd-doc@FreeBSD.ORG Thu Jan 24 20:13:23 2013 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 497DD1DB for ; Thu, 24 Jan 2013 20:13:23 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 0BC7B227 for ; Thu, 24 Jan 2013 20:13:22 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r0OKDLPV084999; Thu, 24 Jan 2013 13:13:21 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r0OKDLGM084996; Thu, 24 Jan 2013 13:13:21 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 24 Jan 2013 13:13:21 -0700 (MST) From: Warren Block To: Eitan Adler Subject: Re: explicit use of /etc/rc.d vs service In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Content-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 24 Jan 2013 13:13:21 -0700 (MST) Cc: freebsd-doc@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 20:13:23 -0000 On Thu, 24 Jan 2013, Eitan Adler wrote: > On 24 January 2013 10:36, Warren Block wrote: >> On Wed, 23 Jan 2013, Eitan Adler wrote: >> >>> Would anyone object to a patch which converts uses of >>> "/etc/rc.d/daemon start" to "service daemon start" and the like? >>> I would like to see service(1) become the standard interface to using >>> services. >> >> >> Agreed. service(1) puts things in one place and abstracts them. Also, it's >> less typing and easier to autocomplete. I did not look at this in detail, but would suggest that the unquoted rc.conf examples should be quoted as the preferred form: > --- a/en_US.ISO8859-1/books/handbook/config/chapter.xml > +++ b/en_US.ISO8859-1/books/handbook/config/chapter.xml > @@ -679,7 +679,7 @@ HOME=/var/log ... > It is easy to check if a service is enabled in > /etc/rc.conf by running the appropriate > @@ -720,7 +720,7 @@ HOME=/var/log > sshd is in fact enabled in > /etc/rc.conf by running: > > - &prompt.root; /etc/rc.d/sshd rcvar > + &prompt.root; service sshd rcvar > # sshd > $sshd_enable=YES > > @@ -734,7 +734,7 @@ $sshd_enable=YES > option is available. For instance to > verify that sshd is actually started: Should be sshd_enable="YES" in both places.