1queuedefs(4)                     File Formats                     queuedefs(4)
2
3
4

NAME

6       queuedefs - queue description file for at, batch, and cron
7

SYNOPSIS

9       /etc/cron.d/queuedefs
10
11

DESCRIPTION

13       The  queuedefs file describes the characteristics of the queues managed
14       by cron(1M). Each non-comment line in this file  describes  one  queue.
15       The format of the lines are as follows:
16
17
18       q.[njobj][nicen][nwaitw]
19
20
21       The fields in this line are:
22
23       q        The name of the queue. a is the default queue for jobs started
24                by at(1); b is the default queue for  jobs  started  by  batch
25                (see  at(1));  c  is  the  default  queue  for jobs run from a
26                crontab(1) file.
27
28
29       njob     The maximum number of jobs that can be run  simultaneously  in
30                that  queue; if more than njob jobs are ready to run, only the
31                first njob jobs will be run, and the others  will  be  run  as
32                jobs  that are currently running terminate.  The default value
33                is  100.
34
35
36       nice     The nice(1) value to give to all jobs in that queue  that  are
37                not run with a user ID of super-user.  The default value is 2.
38
39
40       nwait    The  number  of seconds to wait before rescheduling a job that
41                was deferred because more than njob jobs were running in  that
42                job's  queue, or because the system-wide limit of jobs execut‐
43                ing has been reached.  The default value is 60.
44
45
46
47       Lines beginning with # are comments, and are ignored.
48

EXAMPLES

50       Example 1 A sample file.
51
52         #
53         #
54         a.4j1n
55         b.2j2n90w
56
57
58
59
60       This file specifies that the a queue, for at jobs, can  have  up  to  4
61       jobs  running  simultaneously; those jobs will be run with a nice value
62       of 1.  As no nwait value was given, if a job cannot be run because  too
63       many  other  jobs  are  running cron will wait 60 seconds before trying
64       again to run it.
65
66
67
68       The b queue, for batch(1) jobs, can have up to 2 jobs running  simulta‐
69       neously;  those  jobs  will be run with a nice(1) value of 2.  If a job
70       cannot be run because too many other jobs are  running,  cron(1M)  will
71       wait  90  seconds  before  trying again to run it. All other queues can
72       have up to 100 jobs running simultaneously; they will  be  run  with  a
73       nice value of 2, and if a job cannot be run because too many other jobs
74       are running cron will wait 60 seconds before trying again to run it.
75
76

FILES

78       /etc/cron.d/queuedefs    queue description file  for   at,  batch,  and
79                                cron.
80
81

SEE ALSO

83       at(1), crontab(1), nice(1), cron(1M)
84
85
86
87SunOS 5.11                        1 Mar 1994                      queuedefs(4)
Impressum