Causes updatedb to run three times

Bug #159516 reported by Martin Pitt
10
Affects Status Importance Assigned to Milestone
slocate (Ubuntu)
Invalid
High
Martin Pitt
Hardy
Invalid
High
Martin Pitt

Bug Description

Binary package hint: slocate

$ ls -1 /etc/cron.daily/*locate*
/etc/cron.daily/find.notslocate
/etc/cron.daily/find.notslocate.dpkg-new
/etc/cron.daily/slocate

It improperly diverts findutil's cronjob, which causes updatedb to run three times in succession. Nowadays findutils uses ionice on its own, so there is no reason to even divert it any more.

We need to fix this on upgrades as well.

Martin Pitt (pitti)
Changed in slocate:
assignee: nobody → pitti
importance: Undecided → High
milestone: none → hardy-alpha-1
status: New → In Progress
Steve Langasek (vorlon)
Changed in slocate:
milestone: hardy-alpha-1 → hardy-alpha-2
Revision history for this message
Neal McBurnett (nealmcb) wrote :

Note there is a bug in the findutils update in gutsy which causes it to either not run properly ionice'd or not run at all:
  https://bugs.edge.launchpad.net/ubuntu/+source/findutils/+bug/152692

But it also will ionice process 7, whatever that is, if it exists :-(

On a fresh gutsy install I have both findutils and slocate, and see 2 of those jobs, but don't see /etc/cron.daily/find.notslocate.dpkg-new

Revision history for this message
Cruncher (ubuntu-wkresse) wrote :

/etc/cron.daily/find.notslocate.dpkg-new was created during update, which means you modified /etc/cron.daily/find.notslocate. You should merge those two, and then delete /etc/cron.daily/find.notslocate.dpkg-new

Steve Langasek (vorlon)
Changed in slocate:
milestone: hardy-alpha-2 → none
Revision history for this message
Martin Pitt (pitti) wrote :

This was a red herring after all. run-parts ignores files with a dot in them, so find.notslocate and find.notslocate.dpkg-new are never run.

Changed in slocate:
status: In Progress → Invalid
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.