Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 09:33:48 +1100
From:      Zero Sum <count@shalimar.net.au>
To:        <janb@cs.utep.edu>, freebsd-stable@FreeBSD.ORG
Subject:   Re: how can I run utilities at idle time?
Message-ID:  <00111609334802.43667@shalimar.net.au>
In-Reply-To: <Pine.GSO.4.05.10011150957150.24219-100000@gecko>
References:  <Pine.GSO.4.05.10011150957150.24219-100000@gecko>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00111609334802.43667>