findutils installs broken cron job

Bug #570935 reported by Tom Chiverton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: findutils

/etc/cron.daily/find from the findutils package has a syntax error, so it never runs.

The line is
  cd / && nice -n ${NICE:-10} ionice -c ${IONICE_CLASS:-2} -p ${IONICE_PRIORITY:-7} updatedb

The above line should be -n not -p according to the man page, which says -p is for effecting a running process, and -n is for 'schedule class data' which is what the variable looks like.
The above line will always fail with an error like :
  ionice: cannot parse number 'updatedb'

#152692 appears to be a report from two years ago, closed as invalid, though the bug still persists.

Personally, I think that above cron job should be removed from this package, as updatedb and locate are really in another package (locate/mlocate) and they provide their own cron jobs.

If that's no OK for some reason, we should definitely fix the syntax error to stop root mail spam, and also add the dependency to the package.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: findutils 4.4.2-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Tue Apr 27 21:22:03 2010
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: findutils

Revision history for this message
Tom Chiverton (bugs-launchpad-net-falkensweb) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.