queuedefs(4) CLIX queuedefs(4)
NAME
queuedefs - Queue description file for at, batch, and cron
DESCRIPTION
The /usr/spool/cron/queuedefs file describes the characteristics of the
queues managed by the cron command. Each non-comment line in this file
describes one queue. The format of the lines are as follows:
q.[njob j][nice n][nwait w]
The fields in this line are as follows:
q The name of the queue. The following queue names can be used.
a - the default queue for jobs started by the at command.
b - the default queue for jobs started by the batch command (see
at(1)).
c - the default queue for jobs run from a crontab file.
d - z - user queues.
njob The maximum number of jobs that can be run simultaneously in that
queue. If more than njob jobs are ready to run, only the first
njob jobs will be run, and the others will be run as jobs that are
currently running terminate. The default value is 100.
nice The nice value to give to all jobs in that queue that are not run
with a user ID of superuser. The default value is 2.
nwait The number of seconds to wait before rescheduling a job that was
deferred because more than njob jobs were running in that job's
queue, or because more than 25 jobs were running in all the
queues. The default value is 60.
Lines beginning with # are comments, and are ignored.
EXAMPLE
The following is an example of a queuedefs file:
#
# @(#)queuedefs.5 1.7 90/02/15 SMI; from S5R3
#
a.4j1n
b.2j2n90w
This file specifies that the a queue, for at jobs, can have up to four
jobs running simultaneously, and those jobs will be run with a nice value
2/94 - Intergraph Corporation 1
queuedefs(4) CLIX queuedefs(4)
of 1. If no nwait value is given, and a job cannot be run because too
many other jobs are running, cron will wait 60 seconds before trying again
to run it. The b queue, for batch jobs, can have up to two jobs running
simultaneously, and those jobs will be run with a nice value of 2. If a
job cannot be run because too many other jobs are running, cron will wait
90 seconds before trying again to run it.
All other queues can have up to 100 jobs running simultaneously and they
will be run with a nice value of 2; if a job cannot be run because too
many other jobs are running, cron will wait 60 seconds before trying again
to run it. If no values are defined for a queue in the queuedefs file,
all jobs submitted to that queue will run with the following default
values:
100j2n60w
RELATED INFORMATION
Commands: at(1), nice(1), crontab(1), cron(8)
2 Intergraph Corporation - 2/94