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/adjust-permissions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cron-jobs/adjust-permissions') diff --git a/cron-jobs/adjust-permissions b/cron-jobs/adjust-permissions index 232d48a..1493f4b 100755 --- a/cron-jobs/adjust-permissions +++ b/cron-jobs/adjust-permissions @@ -6,6 +6,9 @@ fi /bin/touch /tmp/.ftpmaint.lck +#adjust the nice level to run at a lower priority +/usr/bin/renice +10 -p $$ > /dev/null + cd /home/ftp /bin/chown -R ftp:ftp-arch core/os/i686 /bin/chown -R ftp:ftp-arch core/os/x86_64 -- cgit v1.2.3-24-g4f1b