Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!princeton!allegra!ulysses!sfmag!sfsup!dcm From: dcm@sfsup.UUCP Newsgroups: comp.bugs.sys5 Subject: Re: What is a QUEDEFS file (cron)? Message-ID: <1086@sfsup.UUCP> Date: Wed, 4-Feb-87 08:42:10 EST Article-I.D.: sfsup.1086 Posted: Wed Feb 4 08:42:10 1987 Date-Received: Sat, 7-Feb-87 12:37:20 EST References: <815@investor.UUCP> Reply-To: dcm@sfsup.UUCP (David C. Miller, consultant) Organization: AT&T Information Systems, Summit, N. J. Lines: 58 In article <815@investor.UUCP> root@investor.UUCP writes: >When I set up /usr/lib/cron/log on my system, each command is >preceded by the following: > >! cannot stat QUEDEFS file current date and time > >I cannot find a reference to this file anywhere in the manuals. >Anybody know what it is and how to set it up? First, a little something about the SysV cron. This is an impressive piece of work! The cron daemon has the capability of maintaining 26 different event queues. Presently only 3 are being used. Queue 'a' is for 'at(1)' jobs, queue 'b' is for 'batch(1)' jobs, and queue 'c' is for cron jobs. (For those not running SysV, saying "batch" is almost like saying "at now", but it uses a different queue and at would respond with "at: too late".) So, that means that there are 23 queues presently unused. Unfortunately, there is no way to use these other queues without rewriting a portion of cron, but that's a story for another day. Now, regarding QUEDEFS. This is in reference to the file "/usr/lib/cron/queuedefs". This file defines certain aspects of the event queues. The default contents should look something like: $ cat /usr/lib/cron/queuedefs a.4j1n b.2j2n90w $ The format of these lines is "queue.[#j][#n][#w][#u]". Queue is the name of one of the queues ('a' thru 'z'). The four fields following the period are all optional. The '#' represents an integer decimal value. The '#j' field limits the number of concurrently running jobs permitted for that queue. The '#n' specifies the nice for all non su jobs on that queue. The '#w' field specifies how long to wait, in seconds, before rescheduling when the number of running jobs is >= '#j'. Finally, the '#u' field prevents scheduling of events when the number of users on the system exceeds this number. A zero value means no restriction. The default values are "10j2n60w0u". As a closing note, cronjobs (as opposed to atobs or batchjobs) bypass the queuedefs. So setting a queue definition for queue 'c' will have no effect. Dave -- David C. Miller, consultant Communications Interface Addresses: Paperware: AT&T Information Systems, 190 River Rd B-310, Summit, NJ 07901 Liveware: (201) 522-6107 Software: {allegra,burl,cbosgd,clyde,ihnp4,ulysses}!sfsup!dcm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On good days life is T.A.N.S.T.A.A.F.L. On days like today: T.A.N.S.T.A.A.L. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~