From owner-freebsd-stable Wed Nov 15 14:34:15 2000 Delivered-To: freebsd-stable@freebsd.org Received: from shalimar.net.au (shalimar.net.au [198.142.161.98]) by hub.freebsd.org (Postfix) with ESMTP id 4FA2C37B4C5 for ; Wed, 15 Nov 2000 14:34:08 -0800 (PST) Received: from shalimar.net.au (localhost [127.0.0.1]) by shalimar.net.au (8.11.1/8.11.1) with SMTP id eAFMXnb43975; Thu, 16 Nov 2000 09:33:49 +1100 (EST) (envelope-from count@shalimar.net.au) From: Zero Sum Organization: Tobacco Chewers and Body Painters Association. Date: Thu, 16 Nov 2000 09:33:48 +1100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" To: , freebsd-stable@FreeBSD.ORG References: In-Reply-To: Subject: Re: how can I run utilities at idle time? MIME-Version: 1.0 Message-Id: <00111609334802.43667@shalimar.net.au> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- On Thursday 16 November 2000 03:59, janb@cs.utep.edu wrote: > I would like to run a cron type service, but the utilities run from this > servic (updating the locate database, for example) should only take up > idle time on the computer. Does anybody know how to do this? > I read the advice that others gave you and it wasn;t very helpful, so this is the best I can do. You have three choices. 1. Use the current 'cron' and put idprio in form of the 'slow' jobs in the crontabs. Problem with this is that is inelegant, mixes up different job classes, rwuire maintenance and is only useful to root. 2. What I would suggest was running a sceonf copy of cron in a chrooted jail at idprio. All jobs kicked of by this second chrooted, idprio'ed cron should run at idle priorities. 3. Take a look at the various queue managing facilities provided by 'at. You can pick queues, set ques with different priorities, maximum concurrent jobs etc. This may very will be exactly what you want. Geoff -- count@shalimar.net.au Nihil curo de ista tua stulta superstitione -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: AN//8Ir0Ug+P/pgOxmTBJZ2fAugnu+of iQA/AwUBOhMPTfh4xz7LU/evEQIWLACgux5QeFRRXjCsjnr0MzJTc7IyUMcAoN7p Ljob5GZEUXKVFNPKkLpexkm9 =oy8f -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message