Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2011 16:41:02 -0700
From:      Russell Jackson <raj@csub.edu>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        Steve Wills <swills@FreeBSD.org>, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/sysutils Makefile ports/sysutils/mcollective Makefile distinfo pkg-descr pkg-plist ports/sysutils/mcollective/files mcollectived.in
Message-ID:  <4E470B8E.5050209@csub.edu>
In-Reply-To: <4E46F4A7.8030300@FreeBSD.org>
References:  <201108131428.p7DESYAh016813@repoman.freebsd.org> <4E46F4A7.8030300@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/13/2011 03:03 PM, Doug Barton wrote:
> 6. Since the -p option is almost certainly mandatory here, use
> command_args instead of _flags.
>

This is originally what I did because I thought it made more sense that way; however, the 
rc-scripting[1] article says not to do it.

Note: Never include dashed options, like -X or --foo, in command_args. The contents of 
command_args will appear at the end of the final command line, hence they are likely to 
follow arguments present in ${name}_flags; but most commands will not recognize dashed 
options after ordinary arguments. A better way of passing additional options to $command 
is to add them to the beginning of ${name}_flags. Another way is to modify rc_flags as 
shown later.


1. http://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/rcng-daemon-adv.html


-- 
Russell A. Jackson <raj@csub.edu>
Network Analyst
California State University, Bakersfield



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E470B8E.5050209>