Forum: CFEngine Help
Subject: Re: Execution time differs (command line vs daemon)
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,25571,25579#msg-25579

----------------------------------------------------------------
time cf-agent
.... some output ....

real    0m12.657s
user    0m10.262s
sys     0m2.142s
--------------------------------------------------------------
time cf-agent -KI
 
...... some output....

real    0m14.762s
user    0m9.824s
sys     0m2.056s
----------------------------------------------------------------
I did measure cf-execd using following command
watch "ps axu|grep cf-agent"

root     27099  0.0  0.0   8704   996 ?        S    05:15   0:00 sh -c 
"/var/cfengine/bin/cf-agent" -f failsafe.cf && "/var/cfengine/bin/cf-agent" 
-Dfrom_cfexecd:scheduled_run
root     27105 89.2  0.2  37672 10504 ?        Rs   05:15   2:00 
/var/cfengine/bin/cf-agent -Dfrom_cfexecd:scheduled_run

And it went up to 2 min.

How I can change command line in the daemon?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to