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
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
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
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
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:
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
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
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
@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
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
00 grep ntpd
>>> [r...@localhost inputs]# cat example1_service_running_ntpd.cf
>>> body common control
>>>
>>> {
>>> bundlesequence => { "check_ntpd_running" };
>>> }
>>>
>>>
>>> bundle agent check_ntpd_running {
>>>
>
rvice_running_ntpd.cf
>> body common control
>>
>> {
>> bundlesequence => { "check_ntpd_running" };
>> }
>>
>>
>> bundle agent check_ntpd_running {
>>
>>
>> processes:
>>
>> "ntpd&
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:
>
>
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
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
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
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
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
18 matches
Mail list logo