cmwexpire


NAME

cmwexpire - Communiware expiration daemon


SYNOPSIS

        cmwexpire [-c config] [-d] [-n] PERIOD


DESCRIPTION

cmwexpire is a program which periodically checks if some items in Communiware database are expired, and deletes them.

It uses expiration rules which are stored in the database as EXPIRATION_RULE items. Text of these items should contain condition (as should be specified in WHERE clause of SQL DELETE statement). Items which satisfy this condition would be deleted.

This query is authomatically appended by condition server=``virtual site this rule belongs to''.

Frequency of checking of particular expiration rule depends of its status, which may be HOURLY, DAILY or WEEKLY.

Upon each invocation of cmwexpire only rules with status, specified in command-line as PERIOD argument are checked.


OPTIONS

-c config
Specifies alternate Communiware configuration files.

-d
Instructs cmwexpire to produce extra debugging output

-n
Instructs cmwexpire to perform select query instead of delete and print its output to stdout.

16 октябрь 2007 13:45