diff options
author | martin f. krafft <madduck@debian.org> | 2010-09-05 08:04:29 +0200 |
---|---|---|
committer | martin f. krafft <madduck@debian.org> | 2010-09-05 08:04:44 +0200 |
commit | 0b80e69a2a980be27d30536099b69e76688ba7cc (patch) | |
tree | 1966f4adefe3a04e9f0ebeb0b45bed75131c55ae /debian/checkarray | |
parent | 1e484e02b5c31afb1cd19f12ded5f49a0ccff794 (diff) |
do not print io rescheduling info message when run by cron
Signed-off-by: martin f. krafft <madduck@debian.org>
Diffstat (limited to 'debian/checkarray')
-rw-r--r-- | debian/checkarray | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/checkarray b/debian/checkarray index bd15ad5f..dafc6529 100644 --- a/debian/checkarray +++ b/debian/checkarray @@ -193,7 +193,9 @@ for array in $arrays; do wait=$((wait - 1)) resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }') if [ -n "$resync_pid" ]; then - echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2 + if [ $cron != 1 ]; then + echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2 + fi ionice -p "$resync_pid" $arg break fi |