[interchange-docs] xmldocs - docelic modified refs/HouseKeepingCron

docs at icdevgroup.org docs at icdevgroup.org
Mon Nov 5 17:01:35 EST 2007

User:      docelic
Date:      2007-11-05 22:01:35 GMT
Modified:  refs     HouseKeepingCron
* Some improvements to the documentation. Will coordinate with Racke to
  get it completely done.

Revision  Changes    Path
1.4       +81 -23    xmldocs/refs/HouseKeepingCron

rev 1.4, prev_rev 1.3
Index: HouseKeepingCron
RCS file: /var/cvs/xmldocs/refs/HouseKeepingCron,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HouseKeepingCron	9 Aug 2007 22:48:42 -0000	1.3
+++ HouseKeepingCron	5 Nov 2007 22:01:35 -0000	1.4
@@ -1,32 +1,82 @@
 __NAME__ purpose
-Specifies Crontab for Regular Tasks
+define Interchange-aware crontab entries
 __NAME__ synopsis
-<arg choice='plain'>&lt;<replaceable>filename</replaceable></arg>
+<arg choice='plain'>
+<arg choice='plain'>
+<arg choice='plain'>
+<arg choice='plain'>
+<arg choice='plain'>
+<arg choice='plain'>
+<arg choice='plain'>
 __NAME__ description
-  The targets are GlobalSub or anything which you can make run
-  with Vend::Dispatch::run_macro. Bear in mind there is no
-  catalog context.
-  Two special targets exist, <literal>:reconfig</literal> and <literal>:jobs</literal>. 
-  They allow calling
-  of the catalog reconfig routines and jobs routines, respectively.
-  The etc/reconfig and etc/jobsqueue files will be ignored if these
-  targets are not present -- a warning will be issued at startup
-  (and crontab change) if they are not there.
-  A target prepended with > runs *after* the reconfig/restart/jobs/pid
-  mgmt cycle. Normal specifications run before.
-  The basic entry to implement <literal>HouseKeeping 5</literal> would be:
+&conf-__FILENAME__; is an &IC;-equivalent of the usual Unix "cron"
+(periodic execution) facility.
+Time specifications (first six fields) behave exactly like
+with the traditional Vixie cron.
+That includes numbers, ranges and '<literal>*</literal>';
+see <citerefentry><refentrytitle>crontab</refentrytitle>
+<manvolnum>5</manvolnum></citerefentry> manual page.
+Additional features are provided by the <classname>Set::Crontab</classname>
+&PERL; module:
+The '<literal>&lt;<replaceable>N</replaceable></literal>' and
+'<literal>&gt;<replaceable>N</replaceable></literal>' select
+elements smaller and larger than <replaceable>N</replaceable>.
+<literal>!<replaceable>N</replaceable></literal> excludes
+<replaceable>N</replaceable> from the set. "<literal>!3</literal>"
+with a range of "<literal>1-10</literal>" corresponds to
+"<literal>1-2,4-10</literal>", and "<literal>>3,!7</literal>"
+in the same range means "<literal>4-6,8-10</literal>".
+Target specification, provided in form of everything after the 6th field,
+consists of the catalog name and action. Catalog name can be prefixed
+with <literal>&gt;</literal>, <literal>&lt;</literal> and 
+Name prepended with '<literal>&gt;</literal>' will make the
+commands run <emphasis role='bold'>after</emphasis> the
+reconfig/restart/jobs/pid management cycle (usually they run before).
+Interchange-specific things you can run include 
+everything you can put into execution over 
+<function>Vend::Dispatch::run_macro</function> function.
+That means &conf-GlobalSub;s, &conf-Sub;s and anything
+else that is suitable for interpolation (all &glos-ITL; code).
+Bear in mind, though, that there is no catalog context; everything is
+executing on the global level.
+In addition to the above, two special targets exist,
+<literal>:reconfig</literal> and <literal>:jobs</literal>. 
+They allow calling
+of the catalog reconfig routines and jobs routines respectively.
+The <filename>etc/reconfig</filename> and
+<filename>etc/jobsqueue</filename> files will be ignored
+(they won't have any special effect) if &conf-__FILENAME__; is 
+specified but these targets are not included.
+In that case, a warning will be issued at
+&IC; startup or crontab change.
+__NAME__ example: Running :restart and :jobs every 5 seconds
 HouseKeeping 1
@@ -37,7 +87,7 @@
-__NAME__ example: Running Batch Jobs
+__NAME__ example: Running batch jobs
 HouseKeepingCron <<EOC
 0 0 * * * * =standard hourly
@@ -51,3 +101,11 @@
 __NAME__ see also
+__NAME__ missing
+run_macro() also supports calling Interpolate::tag_profile if argument is \w+-\w+ but it's not documented ATM as I have no idea what to do with it
+more about <>= in target specification
+Last example (batch jobs) needs to be fixed

More information about the docs mailing list