Forum: CFEngine Help
Subject: Re: Starting cf-execd from inittab
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27509,27544#msg-27544

As a related suggestion, you could probably create a small shell script for 
init to monitor cf-execd by doing something similar to this


pidfile=/var/cfengine/cf-execd.pid
[ -f $pidfile ] && wait $(< $pidfile )
/var/cfengine/bin/cf-execd


That way, the script would start cfexecd if it's not running (more precisely, 
if the pidfile doesn't exist and contain a valid pid), and would just sit and 
watch the process otherwise.  It should probably be a little more specific, in 
that it should validate that the pid is a cf-execd process, but you get the 
idea.

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

Reply via email to