In the body class, you have "persist_time" that allows you to set the number of minutes the related class should remain active
In the cfengine_stdlib.cf : body classes state_repaired(x) { promise_repaired => { "$(x)" }; persist_time => "10"; } Nicolas CHARLES Normation SAS - http://www.normation.com 44 rue Cauchy – 94110 Arcueil, FRANCE Standard +33 (0)1 83 62 26 96 Tél direct +33 (0)1 83 62 57 47 On 16/05/2011 03:30, Aleksey Tsalolikhin wrote: > Hi. How do I set a persistent class, please? > > I see from the reference manual that > $(sys.workdir)/state/cf_state.tcdb is the database of persistent > classes active on this current host. > > cf-agent -v includes the step "Loading persistent classes" > > I see from the reference manual Cfengine Enterprise edition function > remoteclassesmatching() reads persistent classes matching a regular > expression from a remote cfengine server and adds them into local > context with prefix. > > But how do I set a persistent class? > > 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