Job Controller Configuration

At startup, the job controller reads a configuration file that specifies parameters, queues, and channel processing information. This configuration information is specified in the file job_controller.cnf in the /etc/opt/SUNWmail/imta/ directory.

The job controller configuration file, job_controller.cnf:

Defines various types of queues that differ by their capacity and job limit
Specifies for all channels the master program name and the slave program name, if applicable

In the imta.cnf file, you can specify a type of queue (that was defined in job_controller.cnf) by using the queue keyword. For example, the following fragment from a sample job_controller.cnf file defines the queue MY_QUEUE:

 
[QUEUE=MY_QUEUE]
 
capacity = 300
 
job_limit = 12
 

The following fragment from a sample imta.cnf file specifies the queue MY_QUEUE in a channel block:

 
channel_x queue MY_QUEUE
 
channel_x-daemon
 

If you want to modify the parameters associated with the default queue configuration or add additional queues, you can do so by editing the job_controller.cnf file, and stopping and then restarting the job controller with the command:

 
# imta restart job_controller
 

A new job controller process is created, using the new configuration, and receives subsequent requests. The old job controller process continues to execute any requests it has queued until they are all finished, at which time it exits.

To stop the job controller, execute the following command:

 
# imta stop job_controller
 

The first queue in the job controller configuration file, by default the only queue, is used for any requests that do not specify the name of a queue. IMTA channels defined in the IMTA configuration file (imta.cnf) may have their processing requests directed to a specific queue by using the queue channel keyword followed by the name of the queue. The queue name must match the name of a queue in the job controller configuration. If the job controller does not recognize the requested queue name, the request are ignored.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.