PMDF System Manager's Guide


Previous Contents Index

11.3.1 Configuration File Format

The Service Dispatcher configuration file format is similar to the format of other PMDF option files. Lines specifying options have the form


option=value
where option is the name of an option and value is the string or integer to which to set the option. If the option accepts an integer value, value, a base can be specified using notation of the form b%v, where b is the base expressed in base 10 and v is the actual value expressed in base b. Such option specifications are grouped into sections corresponding to the service to which the following option settings apply via lines of the form


SERVICE=service-name
where service-name is the name of a service. Initial option specifications that appear before any such section tag apply globally to all sections. A [SERVICE=DISPATCHER] section can be used to specify options for the Dispatcher itself.

A sample configuration file for an OpenVMS system is shown in Figure 11-2; a sample configuration file for a UNIX system is shown in Figure 11-3; a sample configuration file for an NT system is shown in Figure 11-4.

Figure 11-2 Sample Service Dispatcher Configuration File on OpenVMS, dispatcher.cnf



! The first set of options, listed without a [SERVICE=xxx] 
! header, are the default options that will be applied to all 
! services. 
! 
! Global defaults 
! 
MIN_PROCS=1 
MAX_PROCS=5 
MIN_CONNS=3 
MAX_CONNS=10 
MAX_SHUTDOWN=2 
MAX_LIFE_TIME=86400 
MAX_LIFE_CONNS=300 
MAX_IDLE_TIME=600 
! 
! Other files can be included using the "<" operator as below 
! 
<PMDF_TABLE:dispatcher_site.cnf 
! 
! Now, define the services available to the Dispatcher 
! 
! multithreaded SMTP server 
! 
[SERVICE=SMTP] 
PORT=25 
IMAGE=PMDF_EXE:tcp_smtp_server.exe 
LOGFILE=PMDF_LOG:tcp_smtp_server.log 
! 
! HTTP server 
! 
[SERVICE=HTTP] 
PORT=7633 
IMAGE=PMDF_EXE:http_server.exe 
LOGFILE=PMDF_LOG:http_server.log 
! 
! POP3 server 
! 
[SERVICE=POP3] 
PORT=110 
IMAGE=PMDF_EXE:pop3d.exe 
LOGFILE=PMDF_LOG:pop3d.log 
! 
! IMAP server 
! 
[SERVICE=IMAP] 
PORT=143 
IMAGE=PMDF_EXE:imapd.exe 
LOGFILE=PMDF_LOG:imapd.log 

Figure 11-3 Sample Service Dispatcher Configuration File on UNIX, dispatcher.cnf



! The first set of options, listed without a [SERVICE=xxx] 
! header, are the default options that will be applied to all 
! services. 
! 
MIN_PROCS=1 
MAX_PROCS=5 
MIN_CONNS=3 
MAX_CONNS=10 
MAX_SHUTDOWN=2 
MAX_LIFE_TIME=86400 
MAX_LIFE_CONNS=300 
MAX_IDLE_TIME=600 
! 
! Other files can be included using the "<" operator as below 
! 
</pmdf/table/dispatcher_site.cnf 
! 
! Now, define the services available to Dispatcher 
! 
[SERVICE=SMTP] 
PORT=25 
IMAGE=/pmdf/bin/tcp_smtp_server 
LOGFILE=/pmdf/log/tcp_smtp_server.log 
! 
! HTTP server 
! 
[SERVICE=HTTP] 
PORT=7633 
IMAGE=/pmdf/bin/http_server 
LOGFILE=/pmdf/bin/http_server.log 
! 
[SERVICE=POP3] 
PORT=110 
IMAGE=/pmdf/bin/pop3d 
LOGFILE=/pmdf/log/pop3d.log 
! 
[SERVICE=IMAP] 
PORT=143 
IMAGE=/pmdf/bin/imapd 
LOGFILE=/pmdf/bin/imapd.log 

Figure 11-4 Sample Service Dispatcher Configuration File on NT, dispatcher.cnf



! The first set of options, listed without a [SERVICE=xxx] 
! header, are the default options that will be applied to all 
! services. 
! 
MIN_PROCS=1 
MAX_PROCS=5 
MIN_CONNS=3 
MAX_CONNS=10 
MAX_SHUTDOWN=2 
MAX_LIFE_TIME=86400 
MAX_LIFE_CONNS=300 
MAX_IDLE_TIME=600 
! 
! Other files can be included using the "<" operator as below 
! 
<C:\pmdf\table\dispatcher_site.cnf 
! 
! Now, define the services available to Dispatcher 
! 
[SERVICE=SMTP] 
PORT=25 
IMAGE=C:\pmdf\bin\tcp_smtp_server 
LOGFILE=C:\pmdf\log\tcp_smtp_server.log 
! 
! HTTP server 
! 
[SERVICE=HTTP] 
PORT=7633 
IMAGE=C:\pmdf\bin\http_server 
LOGFILE=C:\pmdf\bin\http_server.log 
! 
[SERVICE=POP3] 
PORT=110 
IMAGE=C:\pmdf\bin\pop3d 
LOGFILE=C:\pmdf\log\pop3d.log 
! 
[SERVICE=IMAP] 
PORT=143 
IMAGE=C:\pmdf\bin\imapd 
LOGFILE=C:\pmdf\bin\imapd.log 


Previous Next Contents Index