Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 12:47:17 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: Proposal: multi-instance and self-contained rc.d script
Message-ID:  <alpine.BSF.2.00.1307011246090.44674@wonkity.com>
In-Reply-To: <6E2CC3DE-E77E-4ECB-AA14-B90BAD2DFB3E@bsdimp.com>
References:  <20130701.062953.1443190655468739608.hrs@allbsd.org> <20130630221032.GB43309@stack.nl> <alpine.BSF.2.00.1307010624530.29556@wonkity.com> <CAF6rxgmz7TCswUv0mojExsHimPhHM%2BR7ASw0MEYWy=2=bHHY=w@mail.gmail.com> <6E2CC3DE-E77E-4ECB-AA14-B90BAD2DFB3E@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <wblock@wonkity.com> 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)/'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1307011246090.44674>