Comment 0 for bug 152692

Revision history for this message
Matt LaPlante (cybrmatt) wrote : updatedb cron job fails

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. "