I guess, library.cf might be an earlier version of cfengine_stdlib.cf. From the error messages, you might want to rename/delete the duplicate bodies in library.cf
Cheers, --Nakarin On Sep 16, 2010, at 2:12 AM, Aleksey Tsalolikhin wrote: > Hi. So I've installed 3.0.5p1, and copied the following to > /var/cfengine/inputs: > > > /usr/local/share/doc/cfengine/inputs/*cf > /usr/local/share/doc/cfengine/cfengine_stdlib.cf > > Now I run cf-agent and get errors: > > cf3:/var/cfengine/inputs/cfengine_stdlib.cf:304,1: Redefinition of > body start for location is a broken promise, near token '{' > cf3:/var/cfengine/inputs/cfengine_stdlib.cf:371,1: Redefinition of > body immediate for action is a broken promise, near token '{' > cf3:/var/cfengine/inputs/cfengine_stdlib.cf:603,1: Redefinition of > body recurse for depth_search is a broken promise, near token '{' > cf3:/var/cfengine/inputs/cfengine_stdlib.cf:630,1: Redefinition of > body tidy for delete is a broken promise, near token '{' > cf3:/var/cfengine/inputs/cfengine_stdlib.cf:672,1: Redefinition of > body days_old for file_select is a broken promise, near token '{' > > So what is library.cf? I know cfengine_stdlib.cfg is the COPBL. > > Here is what I actually did: > > 1. cp /usr/local/share/doc/cfengine/inputs/*cf /var/cfengine/inputs > 2. run cf-agent and confirm it works fine, it even finds my cfengine2 > files and runs cfagent. Great!! > 3. Now I want to add some cfengine 3 promises, so I include > cfengine_stdlib.cf and this is where things break. > > Please advise. > > Thanks, > -at > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine