diff options
author | Dan McGee <dan@archlinux.org> | 2008-11-10 10:45:29 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-11-10 10:58:31 -0800 |
commit | 0dcc6b02d0ed7cf25e9493667030ded9525473ce (patch) | |
tree | 3361ba3a733573b8563dff47a86c1d10131f1854 /cron-jobs/ftpdir-cleanup | |
parent | bdc50e3ecd4bd0a1e02e66f331ea7084cb61882b (diff) |
cron-jobs: use renice to lower job priority
Lower the job priority of our cron jobs so they don't interfere with other
more important things on the server. None of these are very CPU intensive,
but priority for I/O operations should go elsewhere.
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index 65f0855..8b73956 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -26,6 +26,9 @@ trap ctrl_c 2 /bin/touch "$LOCKFILE" +#adjust the nice level to run at a lower priority +/usr/bin/renice +10 -p $$ > /dev/null + for repo in $repos; do for arch in $arches; do $(dirname $0)/../misc-scripts/ftpdir-cleanup $repo $arch |