On 2007-12-15 Craig Sanders <[EMAIL PROTECTED]> wrote: [...] > i've already updated the /etc/cron.daily/dlocate script like so:
> if [ -x /usr/bin/ionice ]; then > # don't run ionice if kernel version < 2.6.13 > KVER=$(uname -r) > case "$KVER" in > 2.[012345]*) ;; > 2.6.[0-9]) ;; > 2.6.[0-9].*) ;; > 2.6.1[012]*) ;; > *) ionice -c3 -p$$ > /dev/null 2>&1 ;; > esac > fi > that should solve the problem. the redirection of stderr is for vserver > and other environments where ionice doesn't work. > the other stuff is to avoid running ionice in kernel versions that don't > support it at all. not really necessary, just seemed a better way of > doing it. Nice. Copied for updatedb. cu andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]