On Sat, 2005-06-11 at 03:08, Robert Story wrote:
> On Sat, 11 Jun 2005 00:56:48 +0200 Thomas wrote:
> TA> Robert Story wrote:
> TA> > snmpd -c +/home/bob/my.conf
> TA> >
> TA> > would cause my.conf to be processed before the default config files.
> TA>
> TA> At a first glance, I find that counterintuitive. For mib dirs, "+" means
> TA> "append" which I'd translate to "be processed *after* the default config
> TA> files" here. But that's the default behaviour already.
I agree.
> TA> Besides, once "-C -c" works properly (thanks to your patch), isn't "-C
> TA> -c file1,file2,..." sufficiently flexible already?
>
> But then you have to track down all the files the agent would read by default
> (in the absence of -C) and add them yourself. If you just want another file
> parsed, and want it parsed before the defaults, you can't do that easily.
OK - how about a special token than can be included within the -c list
to mean "read all the standard config files here".
Something like
-C -c my.pre-conf,CONFIG,my-post-conf
Alternatively, a syntax of
-c /home/bob/my.conf+
might be a reasonably clear indication of prepending rather than
appending. (And could even be extended to the other places where
this is used).
Dave
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders