From owner-freebsd-rc@FreeBSD.ORG Mon Jul 1 18:47:21 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AB9B06C6 for ; Mon, 1 Jul 2013 18:47:21 +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 6ED401B44 for ; Mon, 1 Jul 2013 18:47:21 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r61IlHIc045002; Mon, 1 Jul 2013 12:47:17 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r61IlHNG044999; Mon, 1 Jul 2013 12:47:17 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 1 Jul 2013 12:47:17 -0600 (MDT) From: Warren Block To: Warner Losh Subject: Re: Proposal: multi-instance and self-contained rc.d script In-Reply-To: <6E2CC3DE-E77E-4ECB-AA14-B90BAD2DFB3E@bsdimp.com> Message-ID: References: <20130701.062953.1443190655468739608.hrs@allbsd.org> <20130630221032.GB43309@stack.nl> <6E2CC3DE-E77E-4ECB-AA14-B90BAD2DFB3E@bsdimp.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 01 Jul 2013 12:47:17 -0600 (MDT) Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 18:47:21 -0000 On Mon, 1 Jul 2013, Warner Losh wrote: > > On Jul 1, 2013, at 12:27 PM, Eitan Adler wrote: > >> On Mon, Jul 1, 2013 at 3:25 PM, Warren Block wrote: >>> '/etc/rc.d/routed manpage' would return the generated mdoc code. >>> '/etc/rc.d/routed help' could pipe that output to man. >> >> We should discourage directly running rc.d scripts and should instead >> encourage people to use the service(1) interface. >> >> +1 for both ideas though: they both sound like a very good direction to go in. > > I just need a tcsh magic command to make command completion work with service. :) Like this? complete service 'c/-/(e l r v)/' \ 'p/1/`service -l`/' \ 'n/*/(start stop reload restart status rcvar onestart onestop)/'