cf3 (svn394): exec schedule for Min00 waking up multiple times

View: New views
2 Messages — Rating Filter:   Alert me  

cf3 (svn394): exec schedule for Min00 waking up multiple times

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I stumbled across something odd with cf-execd schedule. It seems Min00
class is waking up cf-execd at multiple times. It watched it wake up
at Min30 and Min35 as well as a few more test.

body executor control {

  #splaytime    => "40";
  mailto       => "$(site.system_admin)";
  mailfrom     => "cfengine@$(sys.uqhost)";
  smtpserver   => "$(site.smtp_server)";
  mailmaxlines => "100";
  schedule     => { "Min00" };

  exec_command => "$(sys.workdir)/bin/cf-agent -B &&
$(sys.workdir)/bin/cf-agent";

}


running it in verbose mode....

cf3 Reference time set to Thu Jun 25 13:30:11 2009
cf3 Checking schedule Min00...
cf3 Checking schedule Min05...
cf3 Checking schedule Min10...
cf3 Checking schedule Min15...
cf3 Checking schedule Min20...
cf3 Checking schedule Min25...
cf3 Checking schedule Min30...
cf3 Waking up the agent at Thu Jun 25 13:30:11 2009
 ~ Min30
cf3 Sleeping for splaytime 0 seconds
cf3 Sleeping...
cf3 ------------------------------------------------------------------
cf3   LocalExec(scheduled) at Thu Jun 25 13:30:11 2009
cf3 ------------------------------------------------------------------
cf3  -> Command => /var/cfengine/bin/cf-agent -B && /var/cfengine/bin/cf-agent
cf3  -> Command is executing.../var/cfengine/bin/cf-agent -B &&
/var/cfengine/bin/cf-agent
cf3  -> Command is complete
cf3  -> No output


Am I using this wrong? I would assume Min00 would only wake up on the hour.
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

Re: cf3 (svn394): exec schedule for Min00 waking up multiple times

by Mark Burgess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Forgot to purge the default schedule. Fixed

Matt Richards wrote:

> I stumbled across something odd with cf-execd schedule. It seems Min00
> class is waking up cf-execd at multiple times. It watched it wake up
> at Min30 and Min35 as well as a few more test.
>
> body executor control {
>
>   #splaytime    => "40";
>   mailto       => "$(site.system_admin)";
>   mailfrom     => "cfengine@$(sys.uqhost)";
>   smtpserver   => "$(site.smtp_server)";
>   mailmaxlines => "100";
>   schedule     => { "Min00" };
>
>   exec_command => "$(sys.workdir)/bin/cf-agent -B &&
> $(sys.workdir)/bin/cf-agent";
>
> }
>
>
> running it in verbose mode....
>
> cf3 Reference time set to Thu Jun 25 13:30:11 2009
> cf3 Checking schedule Min00...
> cf3 Checking schedule Min05...
> cf3 Checking schedule Min10...
> cf3 Checking schedule Min15...
> cf3 Checking schedule Min20...
> cf3 Checking schedule Min25...
> cf3 Checking schedule Min30...
> cf3 Waking up the agent at Thu Jun 25 13:30:11 2009
>  ~ Min30
> cf3 Sleeping for splaytime 0 seconds
> cf3 Sleeping...
> cf3 ------------------------------------------------------------------
> cf3   LocalExec(scheduled) at Thu Jun 25 13:30:11 2009
> cf3 ------------------------------------------------------------------
> cf3  -> Command => /var/cfengine/bin/cf-agent -B && /var/cfengine/bin/cf-agent
> cf3  -> Command is executing.../var/cfengine/bin/cf-agent -B &&
> /var/cfengine/bin/cf-agent
> cf3  -> Command is complete
> cf3  -> No output
>
>
> Am I using this wrong? I would assume Min00 would only wake up on the hour.
> _______________________________________________
> Bug-cfengine mailing list
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine

--
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine