home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / doc / queuing / dspd.doc < prev    next >
Encoding:
Text File  |  1993-05-05  |  2.2 KB  |  65 lines

  1.  
  2. NAME
  3.   dspd - ServiceMail dispatcher daemon
  4.  
  5. SYNOPSIS
  6.   dspd [-nb] [-s time] [-q time] [-k time] [-d spooling directory]
  7.        [-e executable] [-m max meshes] [-Q queuesize] [-t time value]
  8.        [-p priority value] [-l log facility] 
  9.        
  10. DESCRIPTION
  11.   dspd's basic function is to generate a priority queue out of the
  12.   files in a directory and then start dispatching jobs out of that
  13.   queue. dspd wait()s for each job it has dispatched, and starts
  14.   up another job whenever one finishes (provided there is work to
  15.   be done), then unlinks the file. File priorities are computed
  16.   via a weighted sum of the assigned priority (the leading digit)
  17.   and how old the file is.
  18.   
  19.   switches:
  20.     -n will cause dspd not to unlink files after processing. If
  21.       your program doesn't delete them for you, this will cause
  22.       the same files to be processed over and over.
  23.  
  24.     -d will cause dpsd to run as a daemon
  25.  
  26.     -s allows you to specify the time to sleep when there is no
  27.       work to be done. It can be specified as a raw number in which
  28.       case it is taken to be seconds or as number units, e.g. 1h,3m
  29.       default is 300s
  30.       
  31.     -q allows you to specify how long to wait before reorganizing
  32.       the priority queue (by rescanning the directory)
  33.       default is 300 s
  34.       
  35.      -k allows you to specify how long dspd waits before it decides
  36.       a job is hung and guns it down. default is 600s
  37.  
  38.      -d controls the directory where the spooled files are found.
  39.         You must provide this.
  40.  
  41.      -e can be used to specify an executable other than mesh
  42.  
  43.      -m the number of executables to run concurrently.
  44.  
  45.      -Q the length of a queue to maintain         
  46.         
  47.      -t the importance of file age in computing job execution order
  48.         default is zero
  49.         
  50.      -p the importance of file assigned priority in computing
  51.         execution order. default is zero.
  52.  
  53.      -l the log facility to log to. Can be 0-7 corresponding to
  54.         LOG_LOCAL0-LOG_LOCAL7. Default is LOG_LOCAL6
  55.  
  56.   dspd writes it's process id in the spooling directory in the
  57.   file .dsp.pid. This information is used by halt_dequeue to
  58.   shut down dspd.
  59.  
  60. SEE ALSO
  61.   halt_dequeue(1), restart_dequeue(1)
  62.   
  63.   
  64.   
  65.