From 0dcc6b02d0ed7cf25e9493667030ded9525473ce Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 10 Nov 2008 10:45:29 -0800 Subject: 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 Signed-off-by: Aaron Griffin --- cron-jobs/ftpdir-cleanup | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cron-jobs/ftpdir-cleanup') 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 -- cgit v1.2.3-24-g4f1b