Add support for ionice stanza

Bug #1082645 reported by Christian Kampka on 2012-11-24
This bug affects 4 people
Affects Status Importance Assigned to Milestone

Bug Description

Upstart already supports nice(2) via the nice stanza.
It would be very useful for disk intensive processes to be run with adjusted io scheduling using a respective ionice stanza.

Steve Langasek (vorlon) on 2012-11-24
Changed in upstart:
importance: Undecided → Wishlist
status: New → Triaged
Paul Tobias (tobias.pal) wrote :

Until this is implemented you can use a .override file to make upstart ionice the process. Using $$ doesn't work, as it seems to run in a subshell but using the pared PID works well. For example my /etc/init/cron.override file looks like this:

nice 15

pre-start script
 ionice -c3 -p $PPID
end script

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers