Forum: Cfengine Help Subject: Best way to defer all promise evaluation? Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,22328,22328#msg-22328
Hi folks, I'd be interested in your ideas on the best way to defer all promise evaluation and terminate cf-agent ASAP under certain conditions, such as if a timing-sensitive application was running. For example, I can set a restart_class of "sensitive_app_inactive" and make that a requirement for performing the more labor-intensive work such as MD5 checksums on binaries and libs, but is there a way to simply choke off all agent activity before it gets rolling at all? I could envision, for example, having the agent modify the crontab when the sensitive app starts to switch to using a bare-bones configuration which only checks one thing - whether or not the sensitive app has finished running - and then restores the original cron job if so. But I'd be interested to know if there's a more self-contained and tidy way to approach this somewhere in the cf3 functionality I haven't yet learned. Thanks for any suggestions! _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine