testcase, btw, is:

1) wait for updatedb to run from cron
2) examine io priority with "ionice $(pidof updatedb)"
3) should report "best-effort: prio 7"  (broken behavior shows "none: prio 0"

** Description changed:

  Binary package hint: findutils
  
  I see a couple problems with the /etc/cron.daily/find cron job in the
  findutils 4.2.31-1ubuntu2 package (Gutsy RC).
  
  1) There's an extra space in the shebang line (cosmetic)...
  #! /bin/sh
  
  2) It's passing a priority to ionice with the -p flag, however according to 
the ionice man page, the -p flag specifies a pid.  This causes ionice to fail 
to run.
  cd / && nice -n ${NICE:-10} ionice -c ${IONICE_CLASS:-2} -p 
${IONICE_PRIORITY:-7} updatedb
  
  > ioprio_set: No such process
  
  " -p     Pass in a process pid to change an already running  process. "
+ 
+ TEST CASE:
+ 1) wait for updatedb (/etc/cron.daily/find) to run from cron (happens daily 
at 06:25 -- adjust system clock to force a run)
+ 2) while updatedb runs, examine io priority with "ionice $(pidof updatedb)"
+ 3) should report "best-effort: prio 7" (broken behavior shows "none: prio 0")

-- 
updatedb cron job re-nices wrong process (pid 7 by default)!
https://bugs.launchpad.net/bugs/152692
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to