Show only usable commands in rc.subr usage

2013-04-03 Thread Vadim Zhukov
This patch makes rc.subr show only supported operations in usage. This avoids some sort of confusion when, e.g., /etc/rc.d/smtpd shows that reload command is allowed, but when you try it, you get reload not supported error. okay? -- WBR, Vadim Zhukov Index: rc.subr

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Alexander Hall
On 04/03/13 13:42, Vadim Zhukov wrote: This patch makes rc.subr show only supported operations in usage. This avoids some sort of confusion when, e.g., /etc/rc.d/smtpd shows that reload command is allowed, but when you try it, you get reload not supported error. okay? I approve of the

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Antoine Jacoutot
On Wed, Apr 03, 2013 at 05:14:10PM +0200, Alexander Hall wrote: On 04/03/13 13:42, Vadim Zhukov wrote: This patch makes rc.subr show only supported operations in usage. This avoids some sort of confusion when, e.g., /etc/rc.d/smtpd shows that reload command is allowed, but when you try it,

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Vadim Zhukov
03.04.2013 19:24 пользователь Antoine Jacoutot ajacou...@bsdfrog.org написал: On Wed, Apr 03, 2013 at 05:14:10PM +0200, Alexander Hall wrote: On 04/03/13 13:42, Vadim Zhukov wrote: This patch makes rc.subr show only supported operations in usage. This avoids some sort of confusion when,

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Vadim Zhukov
Second iteration after input from halex@ (${...+} trick is cool!). Index: rc.subr === RCS file: /cvs/src/etc/rc.d/rc.subr,v retrieving revision 1.68 diff -u -p -r1.68 rc.subr --- rc.subr 19 Nov 2012 07:10:59 - 1.68 +++

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Antoine Jacoutot
On Wed, Apr 03, 2013 at 08:17:27PM +0400, Vadim Zhukov wrote: Second iteration after input from halex@ (${...+} trick is cool!). ok aja@ with nitpicks Please sort the list this way: start, stop, restart, reload, check Please make the output this way: rc_err usage: $0 [-df] (${_allsup}) i.e.

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Todd T. Fries
Penned by Antoine Jacoutot on 20130403 10:24.19, we have: | On Wed, Apr 03, 2013 at 05:14:10PM +0200, Alexander Hall wrote: | On 04/03/13 13:42, Vadim Zhukov wrote: | This patch makes rc.subr show only supported operations in usage. | This avoids some sort of confusion when, e.g.,

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Antoine Jacoutot
On Wed, Apr 03, 2013 at 12:30:05PM -0500, Todd T. Fries wrote: Penned by Antoine Jacoutot on 20130403 10:24.19, we have: | On Wed, Apr 03, 2013 at 05:14:10PM +0200, Alexander Hall wrote: | On 04/03/13 13:42, Vadim Zhukov wrote: | This patch makes rc.subr show only supported operations in

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Vadim Zhukov
03.04.2013 21:30 пользователь Todd T. Fries t...@fries.net написал: Penned by Antoine Jacoutot on 20130403 10:24.19, we have: | On Wed, Apr 03, 2013 at 05:14:10PM +0200, Alexander Hall wrote: | On 04/03/13 13:42, Vadim Zhukov wrote: | This patch makes rc.subr show only supported operations

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Vadim Zhukov
Third iteration, after input from ajacoutot@, todd@ and marc@. Now rc_restart becomes unavailable if either start or stop is disabled. Index: rc.subr === RCS file: /cvs/src/etc/rc.d/rc.subr,v retrieving revision 1.68 diff -u -p

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread Alexander Hall
Vadim Zhukov persg...@gmail.com wrote: Third iteration, after input from ajacoutot@, todd@ and marc@. Now rc_restart becomes unavailable if either start or stop is disabled. Index: rc.subr === RCS file:

Re: Show only usable commands in rc.subr usage

2013-04-03 Thread todd
This makes a lot of sense to me. Penned by Vadim Zhukov on 20130403 12:59.08, we have: | Third iteration, after input from ajacoutot@, todd@ and marc@. | | Now rc_restart becomes unavailable if either start or stop is disabled. | | | Index: rc.subr |