On 05/12/2012 12:26 AM, Taj Khattra wrote:
> i'm attempting to run cfengine3 under process supervision, so I'd like
> the services to run in the foreground (i.e. no fork).
> "cf-monitord -F" and "cf-serverd -F" work as expected, but "cf-execd
> -F" also implies ONCE=true, so cf-execd exits after on
I have a policy called cfengine_automated_execution.cf that verifies
cf-agent doesn't pile up, bad things don¹t happen, etc..
If I were to move to a long-running daemon mode, I wouldn't use a
supervisory daemon like runit or s6. I'd just drop a cron entry like this:
0 * * * * /var/cfengine/bin/c
On Fri, May 11, 2012 at 7:31 PM, Mike Svoboda wrote:
> Process supervision? What are you trying to use? Runit?
s6, a close cousin of runit (http://www.skarnet.org/software/s6)
> You should be able to spawn a process and verify the pid still is online.
yep, that's what s6-supervise tries to do
Process supervision? What are you trying to use? Runit?
You should be able to spawn a process and verify the pid still is online.
I personally execute cf-exced -F out of cron hourly so I don¹t have to
deal with long running daemons.
On 5/11/12 6:26 PM, "Taj Khattra" wrote:
>i'm attempting