For what its worth, I originally had been running cf-execd as a daemon
managed by a Solaris 10 SMF service

This ended up being a bad idea.  When cf-execd, cf-agent spawn child
processes -- all of these processes are inherited by the same Solaris
"contract id".

This means if you have a module that has a non-zero return status, Solaris'
SMF facility thinks "oh, I need to restart everything managed by this
contract."   Sometimes, this had cf-execd SMF service in maintenance mode
and further, not running.

I then moved to putting cf-execd -F into root's crontab.  I have policies
that verify that cf-serverd and cf-monitord are kept running as daemons.

Running cf-execd -F through cron so far has worked great for me, and its the
same implementation regardless of what Linux / Unix O/S you're on.





On 12/1/10 3:42 PM, "Bas van der Vlies" <b...@sara.nl> wrote:

> 
> On 1 dec 2010, at 17:49, no-re...@cfengine.com wrote:
> 
>> Forum: Cfengine Help
>> Subject: cf-execd: is daemon or cron better?
>> Author: babudro
>> Link to topic: https://cfengine.com/forum/read.php?3,19542,19542#msg-19542
>> 
>> Does anyone have experience or a knowledgeable opinion on this topic?
>> 
>> In section 4.2 of the Reference Manual it demonstrates putting cf-execd in
>> the crontab and in section 1.10 it tells you to change the old "cfexecd" to
>> "cf-execd" in crontab.
>> 
>> Section 2.9 of the Reference Manual shows an example of running it as a
>> daemon and the Concept Guide says, "Whether you choose to run cf-execd in
>> daemon mode, or in wrapper mode is entirely up to you."
>> 
>> We are currently running it from cron, but I noticed the installation default
>> in /etc/default/cfengine3 is for it to start as a daemon.  I once missed
>> changing that and ended up with two copies of cf-execd running every five
>> minutes, so I made a policy to check that.
>> 
>> I noticed a couple of posts where people had troubles (core dump I believe it
>> was) when killing the daemon.  I suppose it avoids any potential memory leaks
>> to have it completely die off each time.
>> 
>> If Mark or any of the dev team would share any insight they have I'd be
>> especially glad to hear from them.
> 
> 
> I run cf-execd as daemon. This runs cf-agent and this checks if cron is
> running.  Also use  cron to check if cf-execd is still runing.
> 
> --
> Bas van der Vlies
> b...@sara.nl
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to