diff options
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/adjust-permissions | 3 | ||||
-rwxr-xr-x | cron-jobs/createFileLists | 3 | ||||
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 3 |
3 files changed, 9 insertions, 0 deletions
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 diff --git a/cron-jobs/createFileLists b/cron-jobs/createFileLists index d6cbd18..044b6d7 100755 --- a/cron-jobs/createFileLists +++ b/cron-jobs/createFileLists @@ -15,6 +15,9 @@ touch "/tmp/createFileList.lock" || exit 1 TMPDIR=$(mktemp -d /tmp/createFileList.XXXXXX) || exit 1 CACHEDIR=$(mktemp -d /tmp/createFileList.XXXXXX) || exit 1 +#adjust the nice level to run at a lower priority +/usr/bin/renice +10 -p $$ > /dev/null + getpkgname() { local tmp 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 |