cfengine notes

cfengine recognizes when changes are made to cfservd.conf. There is no need to send a SIGHUP to or restart cfservd.

From cfengine-Tutorial:

Note that
cfservd will re-read its configuration file whenever it detects that it has been changed, so you should not have to restart the daemon, not send it the HUP signal as with other daemons.

Example syslog message:

Jun 15 11:13:38 nvpmmsa001 cfservd[1693]: Rereading config files /var/cfengine/inputs/cfservd.conf..

If a link overwrites a directory, the directory will be renamed in place, and will not be moved to the Repository location.


/home exists
/home ->! /files0/home is in links:

cfengine will rename /home with a unique directory name such as /home_1181924632_Fri_Jun_15_11_23_55_2007_.cfsaved.dir and create the symbolic link.

cfagent output:

cfengine:nvpcmsa001: Moving directory /home to /home.cfsaved.dir
cfengine:nvpcmsa001: Linking files /home -> /files0/home

cfengine:nvpmmis010: Tidy directory /var/cfengine/outputs cannot be accessed

There is no need to create /var/cfengine/outputs manually to store the output of cfagent runs. It is created automatically by cfexecd.

The cmp operator in packages can be confusing.



This means, "If the installed version of perl is greater than 4:5.8.8-10, do nothing. Otherwise, install the package.

To list a system's currently defined classes, one-per-line:

$ cfagent -pv | perl -ne 'print "$1\n" if /^Defined Classes = \(\s(.*)\s\)/' | tr ' ' '\n' | sort

Back to
Last modified: 2007/10/30