** 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) force updatedb (/etc/cron.daily/find) to run via 'sudo 
/etc/cron.daily/find'
- 2) while updatedb runs, examine io priority with "ionice $(pidof updatedb)"
+ 2) while updatedb runs, examine io priority with "ionice -p $(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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to