[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile problems.
From: |
Jamie Wilkinson |
Subject: |
Re: Compile problems. |
Date: |
Fri, 21 Feb 2003 15:37:29 +1100 |
User-agent: |
Internet Messaging Program (IMP) 3.1 |
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