cvs commit: ports/sysutils Makefile ports/sysutils/mcollective Makefile distinfo pkg-descr pkg-plist ports/sysutils/mcollective/files mcollectived.in

Russell Jackson raj at csub.edu
Sat Aug 13 23:52:36 UTC 2011


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 at csub.edu>
Network Analyst
California State University, Bakersfield


More information about the cvs-ports mailing list