The KIX cron Jobs


KIX depend on regular execution of a few housekeeping scripts. In the current version of KIX these are implemented as cron jobs. Each of these scripts run the kix-regular script with different arguments.

Below is shown a copy of the kix-regular script. It is distributed as a template in the cron-bin with the KixFw download. The script is used to send notification e-mails to KIX stakeholders when stakeholder events are detected.

The script needs adaptation for each KIX instance. The place, where adaptation is required, is marked by a hypertext link, which if followed explains the configured item.

 #!/usr/bin/perl
 use strict;
 use lib '/home/metaagility/lib';
 use PythonTech::Cfw;
 use cfw_kix;
 
 cfw('kix/cronjob')->init($0,@ARGV);
Since the kix-regular script is specific to each KIX instance it is recommended that it is installed in the KIX data directory.

The kix-regular script should be executed from three distributed one-line scripts (see the etc directory in the KixFw download). The template scripts all use aboslute execution paths and thus need adaptation to the local KIX server:

  1. cron-5minutely
  2. cron-hourly
  3. cron-nightly

These three scripts are meant to be executed as cron jobs.

An equivalent sample crontab (normally to be installed in the etc directory) could look like:

 #=======================================================================
 # This is the master cron tab
 # To install it, do
 # crontab etc/crontab
 #=======================================================================
 PATH=/usr/bin:/bin
 MAILTO=webmaster@metaagility.com
 #
 2 * * * * /home/metaagility/etc/cron-5minutely
 7 * * * * /home/metaagility/etc/cron-5minutely
 12 * * * * /home/metaagility/etc/cron-5minutely
 17 * * * * /home/metaagility/etc/cron-5minutely
 22 * * * * /home/metaagility/etc/cron-5minutely
 27 * * * * /home/metaagility/etc/cron-5minutely
 32 * * * * /home/metaagility/etc/cron-5minutely
 37 * * * * /home/metaagility/etc/cron-5minutely
 42 * * * * /home/metaagility/etc/cron-5minutely
 47 * * * * /home/metaagility/etc/cron-5minutely
 52 * * * * /home/metaagility/etc/cron-5minutely
 57 * * * * /home/metaagility/etc/cron-5minutely
 3 * * * * /home/metaagility/etc/cron-hourly
 4 3 * * * /home/metaagility/etc/cron-nightly
Back to the main installation instruction page.

The KixFw development team would appreciate any comments or questions. Include your details if you wish to be contacted. kix4kixfw
 
 

2008-12-31 08:14


Home of kixfw.sourceforge.net
Contact kixfw project