Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19572#msg-19572

JFYI, a simple


exec_command => "/bin/bash -c 'if ! [ `pidof cf-agent` ] ; then 
$(sys.workdir)/bin/cf-agent -f /var/cfengine/inputs/failsafe.cf && 
$(sys.workdir)/cf-agent ; fi'";


in the body executor control seems to do the trick for now.

Cheers,
Robert

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

Reply via email to