Thanks, I have made these consistent and tested. I run cf-key first and save one run of cf-agent. However, a small patch was needed to eliminate pointless error messages due to a recent change.
On 01/01/2011 11:51 AM, Erlend Leganger wrote: > [1] provides these initial steps to get cfengine running from scratch > (after make; make install): > > mkdir -p /var/cfengine/masterfiles > cp /usr/local/share/doc/cfengine/inputs/*.cf /var/cfengine/masterfiles > cp /usr/local/share/doc/cfengine/cfengine_stdlib.cf /var/cfengine/masterfiles > /usr/local/sbin/cf-key > cd /var/cfengine/masterfiles > /usr/local/sbin/cf-agent --bootstrap > > It is here stated that cfengine is running on your system. This is not > correct, you need to run cf-agent one more time to get the one-time > start of cf-serverd+cf-monitord and to get cf-execd added to crontab. > > [2] provides these initial steps: > > host$ sudo cf-agent > host$ sudo cp /usr/local/share/doc/cfengine/inputs/*cf /var/cfengine/inputs/ > host$ sudo cf-agent > host$ sudo cf-agent > > In this case cfengine *is* running, but there are some problems here > as well - cf-key has not been run and there is some confusion whether > cf-agent is/should be run out of /usr/local/sbin or /var/cfengine/bin. > > Combining these two methods, I find that this is the quickest way to > get cfengine running (ignoring "good" errors) after make; make > install: > > /usr/local/sbin/cf-agent 2>&1 >/dev/null > cp /usr/local/share/doc/cfengine/inputs/*cf /var/cfengine/inputs/ > /usr/local/sbin/cf-agent 2>&1 >/dev/null > /usr/local/sbin/cf-key > /usr/local/sbin/cf-agent > > Here is the result, all is well: > bash-3.00# ps -ef|grep cf- > root 18852 1 0 09:46:59 ? 0:00 > /var/cfengine/bin/cf-serverd > root 18844 1 0 09:46:58 ? 0:00 > /var/cfengine/bin/cf-monitord > bash-3.00# crontab -l|grep cf- > 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/cfengine/bin/cf-execd -F > bash-3.00# > > I find that [1] and [2] are inconsistent and that neither are fully > correct, but [2] is really close. It is a good thing that there are > such "Getting started" recipes; I wish I had these when I first > started with cf3... > > - Erlend > > [1]: > http://www.cfengine.org/manuals/cf3-tutorial.html#Getting-started-with-the-Community-Edition > [2]: http://www.cfengine.org/pages/getting_started > _______________________________________________ > Help-cfengine mailing list > [email protected] > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
