[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cfexecd enhancements
From: |
Bas van der Vlies |
Subject: |
Re: Cfexecd enhancements |
Date: |
Thu, 28 Mar 2002 12:45:54 +0100 (MET) |
Mark,
I have a solution to only run cfagent once in a 5 minute interval. Is quite
easy. The patch is included in the attachment.
Regards
On 28-Mar-2002 address@hidden wrote:
>
> Cfexecd stuff is one of the next things that I'll be looking at.
> I cannot respond to this now, but I'll come back to it. Feel free
> to send suggestions, but bear in mind that cfexecd and cfenvd are
> the primary focus of my research now, so there will be developments
> there.
>
> M
>
>
> On 28 Mar, Bas van der Vlies wrote:
>>
>> On 28-Mar-2002 Bas van der Vlies wrote:
>>> I'am using the standalone cfexecd-daemon. So that cfexecd can check if cron
>>> is
>>> running and visa-versa.
>>>
>>> I run cfagent 4 times an hour with the follwing setup:
>>> groups:
>>> Quarterly = ( Min15_20 Min30_35 Min45_50 Hourly QTest HTest )
>>>
>>> control:
>>> schedule = ( Min00_05 Min15_20 Min30_35 Min45_50 )
>>> IfElapsed = ( 1 )
>>>
>>>
>>> In this situation cfagent will run about 17 times in a hour. I know i can
>>> set
>>> IfElapsed = 5 or higher will prevent cfagent to do something. But i only
>>> want
>>> to
>>> run cfagent once in that period. Can this be done?
>>>
>>> My second remark is if i update the cfagent.conf and in cfagent.conf there
>>> is
>>> a
>>> new schedule,sysadm or smtpserver. It will not be seen until we restart the
>>> daemon. Can the cfexecd not reread its variables? It can be easily be done
>>> to
>>> put the GetCfStuff() function inside the while loop.
>>>
>>
>> I hate to reply to my own message, but the second remark is NOT true.
>> cfexecd
>> reread its variables after cfagent has run!!
>> --
>> ********************************************************************
>> * *
>> * Bas van der Vlies e-mail: address@hidden *
>> * SARA - Academic Computing Services phone: +31 20 592 8012 *
>> * Kruislaan 415 fax: +31 20 6683167 *
>> * 1098 SJ Amsterdam WWW: www.sara.nl *
>> * *
>> ********************************************************************
>>
>> _______________________________________________
>> Bug-cfengine mailing list
>> address@hidden
>> http://mail.gnu.org/mailman/listinfo/bug-cfengine
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272 Email: address@hidden
> Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
--
********************************************************************
* *
* Bas van der Vlies e-mail: address@hidden *
* SARA - Academic Computing Services phone: +31 20 592 8012 *
* Kruislaan 415 fax: +31 20 6683167 *
* 1098 SJ Amsterdam WWW: www.sara.nl *
* *
********************************************************************
cfexecd.c.diff
Description: cfexecd.c.diff