bric_dist_mon - Bricolage distribution monitor
$Revision$
$Date$
bric_dist_mon -u username -p password
bric_dist_mon -u username -p password -i 15
bric_dist_mon -u username -p password -c
bric_dist_mon -u username -p password
This program monitors the Bricolage distribution jobs queue, and triggers the execution of distribution jobs when they're due. It does this by connecting to the Bricolage server on a regular basis, getting a list of jobs that are due to be executed, and then sending that list to the Bricolage server to be executed.
bric_dist_mon works in one of two ways. The first is as a cron job. Use the
-c
option in a crontab and bric_dist_mon will always execute once and
then exit. Using bric_dist_mon in a cron job allows the interval for its
execution to be managed by cron, but limits it to the intervals supported by
cron. For example, cron typically allows jobs to be scheduled to run as
frequently as every minute. This will be fine for most applications. However,
in a busy Bricolage environment with highly time-critical content, it may be
important to have bric_dist_mon check for and trigger new distribution jobs
more frequently than cron will allow.
For those environments, bric_dist_mon can be used as a persistent, forking
program. This is the default way to run bric_dist_mon, and the interval can
be set via the -i
option. For example, if a busy environment needed
distribution jobs checked for and executed every 15 seconds, -i 15
will
cause bric_dist_mon to fork a new process every fifteen seconds, and that
process will check for and trigger new jobs.
Note that, to run bric_dist_mon as a persistent forking application, some method of ensuring that it remains running and gets restarted if it exits will need to be put in place. But since most environments will be well served by the 1-minute intervals allowed by cron, we expect that approach to be the main way of running bric_dist_mon, thus avoiding the persistence issues.
-c
.
David Wheeler <david@wheeler.net>