[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeated actions in actionsequence
From: |
Uli Knauss |
Subject: |
Re: repeated actions in actionsequence |
Date: |
17 May 2004 01:07:22 -0700 |
Mohamed Eldesoky <m.eldesoky@tedata.net> wrote in message
news:<mailman.5610.1084714055.1061.help-cfengine@gnu.org>...
Hi,
Can you post what who are doing in your cfengine programm?
Do you declare "feedback-classes" with the option "define" in the
shellcommand action? It is also recommended to label all your
"feedback-classes" in
AddInstallable under the "control:" section. This is described very
good in the reference.
Regards
Uli
> This is weired.
> I tried to define an additional class based on a condition (testing for a
> file).
>
> I made the file intentionally non-existent, to check if the action will run
> or
> not (it shouldn't), but it ran !!
>
> snippits from cfagent -v
> ...
> cfengine::/bin/test -f /tmp/htp2.conf: cfengine:: Couldn't run /bin/test
> cfengine::/bin/test -f /tmp/htp2.conf: cfengine:: execv: No such file or
> directory
> ...
> *********************************************************************
> Main Tree Sched: shellcommands.this is pass 1 @ Sun May 16 16:00:25 2004
> *********************************************************************
> ...
> New temporary class additions
> --------( Pass 1 )-------
> this is
> cfengine:DB-Hosting: Executing script /etc/init.d/ntpd restart...
> (timeout=0,uid=-1,gid=-1)
> (Setting umask to 77)
> cfengine:DB-Hosting:nit.d/ntpd rest: Shutting down ntpd: [ OK ]
> cfengine:DB-Hosting:nit.d/ntpd rest: Starting ntpd: [ OK ]
> cfengine:DB-Hosting: Finished script /etc/init.d/ntpd restart
>
>
> As you see, it has continued to execute the action, although the class hadn
> 't
> been true !!
- repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/16
- Re: repeated actions in actionsequence, Kurt Lieber, 2004/05/16
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/16
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/16
- Re: repeated actions in actionsequence, Kurt Lieber, 2004/05/16
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/16
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/16
- Message not available
- Re: repeated actions in actionsequence,
Uli Knauss <=
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/17