Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • cfexecd enhancement to distinguish scheduled runs

    5 answers - 554 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I have the inittab on various machines set up to run cfexecd
    once as a one-time boot job and once as a long-term daemon.
    Periodic cfengine cron-type jobs need to be run only from the
    daemon and not at boot time.
    Attached is a patch that defines "scheduled_run" if and
    only if cfexecd runs cfagent because it is scheduled to do so.
    caveat: I couldn't find the documentation that says how to
    define multiple classes with the -D option to cfagent so took
    a guess at using colon as a separator, based on the source code.
  • No.1 | | 619 bytes | |

    Joe Buehler wrote:
    I have the inittab on various machines set up to run cfexecd
    once as a one-time boot job and once as a long-term daemon.
    Periodic cfengine cron-type jobs need to be run only from the
    daemon and not at boot time.

    I some similar setup. When the system boots i run cfagent -DBT and
    that skips a lot of actions that you do not want at BT time. a
    regular run it start without this definition and runs all actions.

    This does not require to patch the cfexecd source or did i miss something?

    Help-cfengine mailing list
    Help-cfengine (AT) gnu (DOT) org
  • No.2 | | 414 bytes | |

    Bas van der Vlies wrote:

    I some similar setup. When the system boots i run cfagent -DBT and
    that skips a lot of actions that you do not want at BT time. a
    regular run it start without this definition and runs all actions.

    This does not require to patch the cfexecd source or did i miss something?

    Running cfagent directly bypasses the email supression feature of
    cfexecd at the least.
  • No.3 | | 538 bytes | |

    Tue, Jan 17, 2006 at 07:31:25AM +0100, Bas van der Vlies wrote:
    I some similar setup. When the system boots i run cfagent -DBT and
    that skips a lot of actions that you do not want at BT time. a
    regular run it start without this definition and runs all actions.

    This does not require to patch the cfexecd source or did i miss something?
    cfexecd doesn't provide any way to pass -D options to cfagent.
    If you are using cfexecd to take care of forwarding the output
    to some user, you are stuck.
    -Jason Martin
  • No.4 | | 448 bytes | |

    Mon, Jan 16, 2006 at 12:23:09PM -0500, Joe Buehler wrote:
    I have the inittab on various machines set up to run cfexecd
    once as a one-time boot job and once as a long-term daemon.
    Periodic cfengine cron-type jobs need to be run only from the
    daemon and not at boot time.
    I would think it would be more generic to be able to pass
    cfexecd arbitrary -D options, instead of special-casing a
    particular kind of run.
    -Jason Martin
  • No.5 | | 712 bytes | |

    Tue, 2006-01-17 at 11:51 -0500, Jason Martin wrote:

    cfexecd doesn't provide any way to pass -D options to cfagent.

    Is this something that will be addressed in cfengine 3?

    Alternatively, it sometimes seems strange that cfexecd exists at all:
    why not fold the mail handling (and daemon mode scheduling functions) of
    cfexecd into cfagent?

    Cron works fine for many, probably even most, situations, but having to
    choose between mail handling (by scheduling cfexecd) and the ability to
    pass class options to cfagent (by scheduling cfagent), seems like an
    unnecessary trade-off.
    -Ed

    Help-cfengine mailing list
    Help-cfengine (AT) gnu (DOT) org

Re: cfexecd enhancement to distinguish scheduled runs


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Networking"

EMSDN.COM