help-cfengine
[Top][All Lists]
Advanced

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

Re: Strange intermittent problem with connection...


From: Chris Kacoroski
Subject: Re: Strange intermittent problem with connection...
Date: Tue, 21 Sep 2004 11:45:35 -0700
User-agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)

Wil Cooley wrote:

Yes, you've followed the tutorial and scheduled cfexecd to run at the
same time through cron and it's internal scheduled.  I did the same
thing: http://nakedape.cc/wiki/ApplicationNotes/CfEngine

Wil,

I like the wiki. I checked my config and cannot see where I would have cfexecd scheduled for daemon mode. I have it running from cron every half hour with a splay time of 25 minutes. I see log messages like this:

Sep 21 11:00:00 ski CRON[19560]: (root) CMD (/usr/local/sbin/cfexecd -F)
Sep 21 11:30:00 ski CRON[19677]: (root) CMD (/usr/local/sbin/cfexecd -F)

which tells me that part is working right.  A ps shows the -F switch:

[-0-ski@ski: inputs]$ ps ax | grep cf
  344  ??  Ss     0:00.00 /usr/local/sbin/cfservd
  356  ??  Ss     1:00.77 /usr/local/sbin/cfenvd
19677  ??  S      0:00.01 /usr/local/sbin/cfexecd -F
19706  ??  S      0:00.04 /var/cfengine/bin/cfagent

Config files are:

# cfagent.conf
#
import:
  groups.cf
  variables.cf
  imports.cf


--------------------------------------------
# cfengine.cf
#
control:
  actionsequence = ( processes )

processes:
  "cfservd" restart /usr/local/sbin/cfservd


--------------------------------------------
# update.conf
#
control:
  actionsequence = ( copy tidy links )
  AddClasses = ( ExecResult(/usr/local/scripts/ldapnames --cfengine) )
  domain = ( nsd.org )
  workdir = ( "/var/cfengine" )
  !cfengine::
    SplayTime = ( 15 )


--------------------------------------------
# cfengine install file
#
control:
        actionsequence = ( processes.cfprocs editfiles.cfedit )

processes:
        cfprocs::
                "cfenvd"        restart "/usr/local/sbin/cfenvd"
                "cfservd"       restart "/usr/local/sbin/cfservd"

editfiles:
        cfedit::
                { ${rootcron}
                        SetLine "0,30 * * * * /usr/local/sbin/cfexecd -F"
                        AppendIfNoLineMatching ".*cfexecd.*"
                        AutoCreate
                        DefineClasses "restart_cron"
                }




reply via email to

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