On Thu, Dec 16, 2010 at 01:47:15AM -0500, no-re...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Overriding ps option string in 3? >Author: mark >Link to topic: https://cfengine.com/forum/read.php?3,19802,19809#msg-19809 > >We deliberately took this out in v3 to avoid problems with matching. I can >apologize for some mess in getting these things typed in properly, but >eventually we want to end up with as close to a standard output on each >platform, otherwise the advertised search features will not work. > >In Neil's case it looks like the confluence of two fixes has resulted in a new >problem. This often happens, and it's why we value the feedback. Im not sure >that people should be typing in their own strings instead of reporting back.
Why not have a reasonable default appropriate for each platform, but allow for a documented, albeit obscure, method to change it as needed? In fact, you could even do it in the context of an array, where the key is the "program" in question, and the value whatever string is actually executed. CF3 would set the (sane) defaults, but users could change them if needed. Thus, something like: $sys_prog['ps'] string => 'ps -efZ'; How is this different, fundamentally, from letting users specifiy their own package: actions? There are lots of package management systems, and there's a method to allow users to customize this. -- Jesse Becker NHGRI Linux support (Digicon Contractor) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine