Re: cf-execd foreground

2012-05-11 Thread Mike Svoboda
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

Re: cf-execd foreground

2012-05-11 Thread Taj Khattra
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

Re: cf-execd foreground

2012-05-11 Thread Mike Svoboda
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

cf-execd foreground

2012-05-11 Thread Taj Khattra
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 one run? in cfengine2, I believe it was possible to

CFEngine Help: Re: $sys.host and $sys.fqhost returning same FQ value.

2012-05-11 Thread no-reply
Forum: CFEngine Help Subject: Re: $sys.host and $sys.fqhost returning same FQ value. Author: davinken Link to topic: https://cfengine.com/forum/read.php?3,25899,25901#msg-25901 Thanks ! This seems to have fixed the issue. ___ Help-cfengine mailing list

CFEngine Help: Re: $sys.host and $sys.fqhost returning same FQ value.

2012-05-11 Thread no-reply
Forum: CFEngine Help Subject: Re: $sys.host and $sys.fqhost returning same FQ value. Author: Authority Link to topic: https://cfengine.com/forum/read.php?3,25899,25900#msg-25900 https://cfengine.com/manuals/cf3-Reference#Variable-sys_002euqhost I think what you want is is $(sys.uqhost). $(sys.ho

CFEngine Help: $sys.host and $sys.fqhost returning same FQ value.

2012-05-11 Thread no-reply
Forum: CFEngine Help Subject: $sys.host and $sys.fqhost returning same FQ value. Author: davinken Link to topic: https://cfengine.com/forum/read.php?3,25899,25899#msg-25899 Yet another newbie question (CentOS 5.7/Fedora 16 environment, CFE 3.3.1) I'm just testing some very simple policies, and arr

Re: bundles with the same name

2012-05-11 Thread Nick Anderson
On 05/11/2012 09:39 AM, Gregory Matthews wrote: > except when you need a caffeine boost and you say "Mike, get me a coffee" > > I don't care which Mike brings my coffee ;) Something like commands: mike:: "/usr/bin/wget coffee" action => "immediate";

Re: bundles with the same name

2012-05-11 Thread Gregory Matthews
On 11/05/12 15:14, Aleksey Tsalolikhin wrote: > Is it ever confusing to have two people with the same name? Or two > anything with the > same name? :) Same thing with bundles... except when you need a caffeine boost and you say "Mike, get me a coffee" I don't care which Mike brings my coffee

Re: bundles with the same name

2012-05-11 Thread Aleksey Tsalolikhin
On Wed, May 9, 2012 at 6:19 AM, Gregory Matthews wrote: > Is it bad practice to have bundles with the same name? Most definitely. I have had students that have tried it and been confused by the results. Is it ever confusing to have two people with the same name? Or two anything with the same n

CFEngine Help: Re: CFEngine, coud you please update the PDF version of the Reference Manual? (3.2.0a, 29 June 2011)

2012-05-11 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine, coud you please update the PDF version of the Reference Manual? (3.2.0a, 29 June 2011) Author: geir Link to topic: https://cfengine.com/forum/read.php?3,25857,25892#msg-25892 Thanks for the feedback. Website now up-to-date.

CFEngine Help: Executes only by hand

2012-05-11 Thread no-reply
Forum: CFEngine Help Subject: Executes only by hand Author: tjavo87 Link to topic: https://cfengine.com/forum/read.php?3,25888,25888#msg-25888 Hi All, I'm running cfengine-community-3.3.0-1.el6 on rhel 6 servers. I created a promise to update cfengine-community to 3.3.1.1-1. The packages part: