[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeated actions in actionsequence
From: |
Mohamed Eldesoky |
Subject: |
Re: repeated actions in actionsequence |
Date: |
Sun, 16 May 2004 16:05:02 +0300 |
User-agent: |
KMail/1.6.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
#############
Looking for environment from cfenvd...
Unable to detect environment from cfenvd
Looking for an input file /var/cfengine/inputs/cfagent.conf
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
Finished with cfagent.conf
..............
..............
<snip>
.............
.............
*********************************************************************
Main Tree Sched: editfiles pass 1 @ Sun May 16 16:00:25 2004
*********************************************************************
*********************************************************************
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 !!
On Sunday 16 May 2004 2:40 pm, Kurt Lieber wrote:
> On Sun, May 16, 2004 at 02:02:02PM +0300 or thereabouts, Mohamed Eldesoky
wrote:
> > It is the same class, alas.
>
> You need to separate them into different classes. I'm fairly sure you can
> arbitrarily create classes to affect the order of execution in the
> actionsequence.
>
> actionsequence = {
> copy.totallynewclass
> copy.totallynewsecondclass
> }
>
> copy:
> totallynewclass.other.classes.here::
> <do stuff>
> totallynewsecondclass.other.classes.here::
> <do more stuff>
>
> --kurt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAp2cA2FHsOWMJBKMRAr7sAKC6P8lvE/IQ85tFbcwn245y8d/u0QCgrRRc
SnJD+1Zm57mxkXPAj+1AgH4=
=VIgm
-----END PGP SIGNATURE-----
- 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 <=
- Message not available
- Re: repeated actions in actionsequence, Uli Knauss, 2004/05/17
- Re: repeated actions in actionsequence, Mohamed Eldesoky, 2004/05/17