/etc/cron.daily/find has wrong ionice parameter

Bug #159472 reported by Armin Schindler
6
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)
Triaged
Low
Unassigned

Bug Description

In /etc/cron.daily/find is ionice used when starting updatedb. The is
 ... ionice -c ${IONICE_CLASS:-2} -p ${IONICE_PRIORITY:-7} updatedb ...
So the option -p is used to set the priority. But ionice uses -p to set a specific process ID and to
set the priority the -n parameter must be used.
On some installation (I cannot tell what the difference is), this produces an error. On others the -p
seems to be ignored.
This seems to be introduced by Bug #134692.

Revision history for this message
Armin Schindler (armin-melware) wrote :

I forgot to tell that I talk about gutsy here.

Revision history for this message
Armin Schindler (armin-melware) wrote :

The reason why sometimes (on some installations) no error is reported, is of course if the 'priority' given with -p is a current valid process ID. Which means that this process is changed by ionice instead of calling updatedb.

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi Armin
Thanks for you report, this is also present in hardy.

Revision history for this message
Basilio Kublik (sourcercito) wrote :
Revision history for this message
Matt LaPlante (cybrmatt) wrote :

This is a dup of 152692 with a more specific title.

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi Matt
you're absolutely right, thanks for pointing this out.

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.