help-cfengine
[Top][All Lists]
Advanced

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

Re: run cfengine with params


From: Yves
Subject: Re: run cfengine with params
Date: Wed, 10 Nov 2004 19:16:28 +0100

On Tue, 09 Nov 2004 13:43:39 -0500, Dave Stern wrote:
> We would like cfengine to run in two different formats yet use the
> same  config file. Is this possible?
>
> Specifically, I'd like an interactive script to use a different
> value for SplayTime which is defined in control in the config file.
>
> Ideally, I'd like a command line parameter like:
> cfengine -f ... -DsPlayTime=1
> for interactive   and
> cfengine -f ... -Dsplaytime=60
> for cron
>
> But if this can only be done by defining a class from the command
> line and having some class stanza that changes splaytime, that would be
> ok too (just work coding to set). If so, could someone show an example?
>
> TIA

It seems to me, that you haven't recognized the "-q" option yet.

-q  (--no-splay) Switch off host splaying (sleeping).

cfagent -q -f ...


Yves

 Y99@gmx.de am 10.11.2004





reply via email to

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