Re: restart_class

2010-11-16 Thread Michael Potter
On Tue, Nov 16, 2010 at 9:56 PM, Seva Gluschenko wrote: > Michael, > > my observations match yours, restart_class is local to the bundle. > While process_cound body usage can be afforded as a workaround, I > believe you're on the right side to file the bug. Thanks Seva - o

Re: restart_class

2010-11-16 Thread Seva Gluschenko
Michael, my observations match yours, restart_class is local to the bundle. While process_cound body usage can be afforded as a workaround, I believe you're on the right side to file the bug. 2010/11/16 Michael Potter : > The refguide says this about restart class: "A class

restart_class

2010-11-16 Thread Michael Potter
not able to rely on restart_class classes from earlier bundles. Can anyone else confirm this...and which is correct? Refguide or observed behavior? ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: restart_class

2010-11-16 Thread Michael Potter
Hmm seems that using process_select with a body like this: body process_count isnot_running(class) { match_range => irange("1","inf"); out_of_range_define => { "$(class)" }; } Does set a class globally like I expect restart_class to do. On Tue, Nov 16, 20

Re: Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-10 Thread Aleksey Tsalolikhin
Great idea, thanks, Neil, I'll definitely try that! Aleksey On Fri, Sep 10, 2010 at 5:06 AM, wrote: > Forum: Cfengine Help > Subject: Re: need help with restart_class; the example from the manual does > not work (3.0.5p1) > Author: neilhwatson > Link to topic: https:

Re: Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-10 Thread Aleksey Tsalolikhin
On Thu, Sep 9, 2010 at 11:12 PM, Seva Gluschenko wrote: > Aleksey, > > I told you about regex and suggested looking into process_select > compound body. Unfortunately, you didn't hear. Seva, you were right, it is a regex issue. Thank you. And I see why you suggested -K, because of the 0/1 minu

Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-10 Thread no-reply
Forum: Cfengine Help Subject: Re: need help with restart_class; the example from the manual does not work (3.0.5p1) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18140,18164#msg-18164 Aleksey, you might get a better understanding of the process table during the run if

Re: Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-09 Thread Seva Gluschenko
ks, Neil!  anchoring the regex helped (i.e. the > example works now) > > I don't understand why regex "^ntpd" sets the restart_class, and regex > "ntpd" does not.  "ps auwx" output does not contain ntpd at all, so I > don't understand why it wo

Re: Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-09 Thread Aleksey Tsalolikhin
@Seva: -K did not help. lock is not an issue in this case; regex is. thanks anyway! @neil watson: thanks, Neil! anchoring the regex helped (i.e. the example works now) I don't understand why regex "^ntpd" sets the restart_class, and regex "ntpd" does not. "ps

Cfengine Help: Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-09 Thread no-reply
Forum: Cfengine Help Subject: Re: need help with restart_class; the example from the manual does not work (3.0.5p1) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18140,18144#msg-18144 The promise "ntpd" is very vague. I would be more specific. This

Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Seva Gluschenko
00 grep ntpd >>> [r...@localhost inputs]# cat example1_service_running_ntpd.cf >>> body common control >>> >>> { >>> bundlesequence  => { "check_ntpd_running"  }; >>> } >>> >>> >>> bundle agent check_ntpd_running { >>> >

Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Aleksey Tsalolikhin
rvice_running_ntpd.cf >> body common control >> >> { >> bundlesequence  => { "check_ntpd_running"  }; >> } >> >> >> bundle agent check_ntpd_running { >> >> >>    processes: >> >>            "ntpd&

Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Seva Gluschenko
pts/0    R+   23:26   0:00 grep ntpd > [r...@localhost inputs]# cat example1_service_running_ntpd.cf > body common control > > { > bundlesequence  => { "check_ntpd_running"  }; > } > > > bundle agent check_ntpd_running { > > >    processes: > >  

need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Aleksey Tsalolikhin
3996 684 pts/0R+ 23:26 0:00 grep ntpd [r...@localhost inputs]# cat example1_service_running_ntpd.cf body common control { bundlesequence => { "check_ntpd_running" }; } bundle agent check_ntpd_running { processes: "ntpd" resta

Re: Validation error for restart_class rvalue

2010-01-13 Thread Jim Lawson
was fiddling with some of the >> examples using community 3.0.2. >> >> Since updating to 3.0.3 I have started seeing lots of messages like the >> following: >> >> Validation: Scalar item in restart_class => { startcfexecd } in rvalue >> is out of bo

Re: Validation error for restart_class rvalue

2010-01-13 Thread Nakarin Phooripoom
nce updating to 3.0.3 I have started seeing lots of messages like the > following: > > Validation: Scalar item in restart_class => { startcfexecd } in rvalue > is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) > > This seems an odd message, since the rval

Re: Validation error for restart_class rvalue

2010-01-13 Thread bernd . adamowicz
I'm getting the same messages with 3.0.3: Validation: Scalar item in restart_class => { start_cf_monitord } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) Validation: Scalar item in restart_class => { start_cf_serverd } in rvalue is out of bounds (v

Validation error for restart_class rvalue

2010-01-12 Thread Jim Lawson
Hi help-cfengine, I am just getting started with Cf3. I was fiddling with some of the examples using community 3.0.2. Since updating to 3.0.3 I have started seeing lots of messages like the following: Validation: Scalar item in restart_class => { startcfexecd } in rvalue is out of bou