help-cfengine
[Top][All Lists]
Advanced

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

RE: Compile problems.


From: Wheeler, John
Subject: RE: Compile problems.
Date: Fri, 21 Feb 2003 15:06:29 -0600

Any reason why people choose not to run cfexecd out of inittab (with schedule of course)?

-----Original Message-----
From: Jamie Wilkinson [mailto:jamie@anchor.net.au]
Sent: Thursday, February 20, 2003 10:37 PM
To: help-cfengine@gnu.org
Subject: Re: Compile problems.


Posting back to the list because my recipies might be useful to someone.

Quoting Paul Heinlein <heinlein@cse.ogi.edu>:

> Oh, yeah, I also have an init script, /etc/init.d/cfengine (below),
> but I actually install it via our cfengine rule set, not the rpm.

Thanks.

We actually do this (we run cfengine on both Debian and Red Hat systems) without worrying about an initscript by running cfexecd -F from cron, and cfengine has a recipie for adding its launcher script to /etc/cron.d.  This way we don't have to worry about it -- on install we run cfengine once, and cron takes care of it afterwards.

cfengine then takes care of making sure cfenvd is running on all the machines, and cfservd on the "gold server".

editfiles:
 
    any::
 
        { /etc/cron.d/cfengine
            AppendIfNoSuchLine "# /etc/cron.d/cfengine: cron fragment for cfengine"
            AppendIfNoSuchLine "0,30 * * * * root /usr/sbin/cfexecd -F"
        }

processes:
 
    any::
 
        "cfenvd" restart "/usr/sbin/cfenvd" useshell=false
 
    configserver::
 
        "cfservd" restart "/usr/sbin/cfservd" useshell=false



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org http://mail.gnu.org/mailman/listinfo/help-cfengine


reply via email to

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