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 <[email protected]>
Network Analyst
California State University, Bakersfield
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to