I don't think this is related to your problem, but is there a reason you are using a shell callout to /usr/bin/test rather than FileExists?
http://www.cfengine.org/docs/cfengine-Reference.html#Evaluated-classes-and-special-functions If behavior is different on the command line than using cfrun, I would suspect a difference in the environment. Maybe PATH... except that test is absolutely qualified. You might want to have a shellcommand of /usr/bin/env and compare the output in both cases. Greg Retkowski wrote: > I've got a weird problem with cfengine, and I'm curious if anyone else > has encountered it, or if it's a 'feature' and if so how I work around > it. I define lots of classes/groups in my cfagent.conf file, mostly > based on if a file exists, and then various actions occur based on if a > system is in a given class. For example, if the system is a webserver > then there's a section in 'processes:' that'll restart a dead webserver > (and so on). This works fine running cfagent locally on the command > line, but when run remotely via cfrun none of the classes/groups I > define in cfagent.conf are defined when cfagent remotely runs. > > So I've got in my cfagent.conf something like: > > groups: > is_webserver = ( "/usr/bin/test -f /etc/httpd/conf/httpd.conf" ) > > when i run cfagent on the command line (with arguments -v --no-splay ) > on the local host I get: > > Defined Classes = ( ... is_webserver ... ) > But if I run it remotely with 'cfrun somehost -- -v' the is_webserver > does not show up in Defined Classes. > > This is on cfengine version 2.1.11. > > Any clue?? > > -- Greg > > -- > Greg Retkowski / I.T. Infrastructure Consultant | RAGE > [EMAIL PROTECTED] http://www.rage.net/~greg/ C:408-455-3913 | .NET > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine