help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is this a bug in cfengine?


From: Nielsen, Steve
Subject: is this a bug in cfengine?
Date: Fri, 17 Dec 2004 16:08:57 -0500

I am trying to control the order in which my actions runs. (See script below):

Things run in this order:
-------------------------
1. shellcommands.first and shellcommands run together
2. then shellcommands.second runs
3. then shellcommands.last runs

I would expect things to run in the order I specifiy.

Why does cfengine behave in this way? Is this a bug?

I am running cfengine 2.1.11 on redhat 7.3

Thanks,
Steve

====================
Here is the script:
===================

#!/var/cfengine/bin/cfagent -qvKf

control:
    actionsequence = (
        shellcommands.first
        shellcommands.second
        shellcommands.last
        shellcommands
    )

shellcommands:
    first::
        "/bin/echo FIRST"
    second::
        "/bin/echo SECOND"
    any::
        "/bin/echo ANY"

    last::
        "/bin/echo LAST"

====================================
Here is the output (just a snippet):
====================================

*********************************************************************
 Main Tree Sched: shellcommands.first pass 1 @ Fri Dec 17 15:00:57 2004
*********************************************************************


(Non privileged user...)


                  New temporary class additions
                  --------( Pass 1 )-------
                             first
cfengine:: Executing script /bin/echo FIRST...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine::/bin/echo FIRST: FIRST
cfengine:: Finished script /bin/echo FIRST
cfengine:: Executing script /bin/echo ANY...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine::/bin/echo ANY: ANY
cfengine:: Finished script /bin/echo ANY

*********************************************************************
 Main Tree Sched: shellcommands.second pass 1 @ Fri Dec 17 15:00:57 2004
*********************************************************************


(Non privileged user...)


                  New temporary class additions
                  --------( Pass 1 )-------
                             second
cfengine:: Executing script /bin/echo SECOND...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine::/bin/echo SECON: SECOND
cfengine:: Finished script /bin/echo SECOND

*********************************************************************
 Main Tree Sched: shellcommands.last pass 1 @ Fri Dec 17 15:00:57 2004
*********************************************************************


(Non privileged user...)


                  New temporary class additions
                  --------( Pass 1 )-------
                             last
cfengine:: Executing script /bin/echo LAST...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine::/bin/echo LAST: LAST
cfengine:: Finished script /bin/echo LAST





reply via email to

[Prev in Thread] Current Thread [Next in Thread]