FYI, the package "dlocate" already has support for the same feature.

You probably want to get inspired from /etc/cron.daily/dlocate:

# See ionice(1)
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]*) ;;

    # redirect ionice output to /dev/null 
    # because VSERVER doesn't like it.  See Bug#456292
    *) ionice -c3 -p$$ > /dev/null 2>&1 ;;
  esac
fi

This could be a good start for a rsync initscript patch to support
"RSYNC_IONICE" option.

HIH
-- 
 ,''`.
: :' :      Cyril Bouthors
`. `'         Debian.org
  `-



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to