On Tue 05 Jul 2005, Andreas Metzler wrote: > On 2005-07-04 David Jarvie <[EMAIL PROTECTED]> wrote: > > Package: findutils > > Version: 4.2.22-1 > > > My /etc/updatedb.conf contains (among other things): > > > LOCALUSER="root" > > export LOCALUSER > > NICE=19 > > export NICE > > > and when updatedb is run by cron from /etc/cron.daily/find, it runs at the > > expected nice priority of 19. However, when updatedb runs 'find', find's > > nice > > level is 0, not 19. > [...] > > Hello, > The cause of this is this that since very recently invoking su uses the > PAM module pam_limits.so which in turn resets the nice-level to 0. > > http://bugs.debian.org/311058 > http://bugs.debian.org/241663 > > As a workaround you can disable the entry for pam_limits.so in > /etc/pam.d/su. (Gaining that the nice-level is kept, but losing > safeguardlimits imposed on processes run with su.)
A workaround could of course be to export the NICE value as something unique like FINDUTILS_NICE (to avoid unfortunate conflicts with other things), and then modify /usr/bin/updatedb to add "nice -n $FINDUTILS_NICE" in the su -c parameter. Paul Slootman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

