Dear Dejan and Andrew
Thanks a lot for your help.
> No, I don't think so, unless you disable syslog somehow.
I think I'll use syslog to do it. Thanks
>Why does that bother you?
I use ptest very often in my script therefore I don't want to write this 
information in /var/log/messages.

__
Best wishes,
Ivan
* Dejan Muhamedagic <[email protected]> [Tue, 18 Aug 2009 17:05:26 
+0200]:
> Hi,
>
> On Tue, Aug 18, 2009 at 06:25:40PM +0400, Ivan Gromov wrote:
> > Hi, all
> >
> > I use ptest -LsVV 2>&1 to determine resource and group score. I have
> > noticed that the ptest writes information in /var/log/messages . Is 
it
> > possible to forbid the ptest to write in messages file?
>
> No, I don't think so, unless you disable syslog somehow. Why does
> that bother you?
>
> Thanks,
>
> Dejan
>
>
> Try the following patch (which I'm about to commit)

>diff -r 33da369d36e3 pengine/ptest.c
>--- a/pengine/ptest.c Tue Aug 18 14:38:16 2009 +0200
>+++ b/pengine/ptest.c Tue Aug 18 17:00:06 2009 +0200
>@@ -178,7 +178,7 @@ main(int argc, char **argv)
>         crm_log_init("ptest", LOG_CRIT, FALSE, FALSE, 0, NULL);
>         crm_set_options("V?$XD:G:I:Lwx:d:aSs", "[-?Vv] -[Xxp] {other
>options}", long_options,
>                         "Calculate the cluster's response to the 
supplied cluster state\n");
>- cl_log_set_facility(LOG_USER);
>+ cl_log_set_facility(-1);
>
>         while (1) {
>                 int option_index = 0;
>
> >
> >
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to