Scheduling Digest Tasks
Scheduling tasks or jobs can be done by using the PureMessage Manager (see "Scheduled Jobs"), by using the PureMessage command-line programs (see pmx-scheduler), or by directly editing the configuration files etc/scheduler.conf and etc/scheduler.d/*.conf.
The examples below show the default Scheduler settings for the programs used to generate and administer quarantine digests. It is assumed that the pmx-queue program (configured and enabled by default during installation) is running as a Scheduler job in order to handle the delivery of quarantine digests.
pmx-qdigest: The pmx-qdigest program generates quarantine digests. The default Scheduler configuration file for this program (/opt/pmx6/etc/scheduler.d/pmx-qdigest.conf) is as follows:
<event pmx-qdigest> desc = "Send out quarantine digests" type = exec action = "pmx-qdigest --quiet" enabled = 1 <when> s = 0 m = 0 h = 15 </when> </event>
See the pmx-qdigest man page for a list of command-line switches.
pmx-qdigest-expire: The pmx-qdigest-expire program deletes digests older than the specified age. The default Scheduler configuration file for this program (/opt/pmx6/etc/scheduler.d/pmx-qdigest-expire.conf) is as follows:
<event pmx-qdigest-expire> desc = "Expire pending digests" type = exec action = "pmx-qdigest-expire --quiet" enabled = 1 <when> s = 0 m = 13 h = 4 </when> </event>
See the pmx-qdigest-expire man page for a list of command-line switches.