help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfservd under load - SplayTime quirks


From: Eric Sorenson
Subject: Re: cfservd under load - SplayTime quirks
Date: Thu, 9 Dec 2004 07:55:29 -0800 (PST)

On Wed, 8 Dec 2004, Jim Wight wrote:

The 'cfagent -Q' run appears to be new, and the source of the problem.
Downgrade until it gets fixed.

I sent this to the bugs list too, but here's a fix :

--- cfengine-2.1.11/src/cfagent.c       2004-10-26 00:44:31.000000000 -0700
+++ cfengine-2.1.11-eric/src/cfagent.c  2004-12-08 15:06:04.000000000 -0800
@@ -163,18 +163,18 @@
     exit(1);
     }

- if (PARSEONLY)                            /* Establish lock for root */
-    {
-    exit(0);
- } -
  CfOpenLog();
  CheckSystemVariables();

  SetReferenceTime(false); /* Reset */

  QueryCheck();
- +
+ if (PARSEONLY)                            /* Establish lock for root */
+    {
+    exit(0);
+ } +
  DoTree(2,"Main Tree");
  DoAlerts();

@@ -1734,6 +1734,7 @@
              }

           IGNORELOCK = true;
+          PARSEONLY = true;
           NOSPLAY = true;
           QUERYVARS = SplitStringAsItemList(optarg,',');
           break;



--

 - Eric Sorenson - Explosive Networking - http://eric.explosive.net -




reply via email to

[Prev in Thread] Current Thread [Next in Thread]