Bug #331921; ionice to 'idle' rather than 'best-effort'
-update-motd (1.11) unreleased; urgency=low
+update-motd (1.11) jaunty; urgency=low
- *
+ * update-motd: don't fail the entire script, if renice/ionice fail,
+ LP: #331921; ionice to 'idle' rather than 'best-effort'
- -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 05 Mar 2009 08:09:59 -0600
+ -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 05 Mar 2009 10:51:26 -0600
update-motd (1.10) jaunty; urgency=low
if [ "$FORCE" != "1" ]; then
# Be *really* nice, if we're running in the background (not forced)
- renice 10 $$ >/dev/null
- ionice -c2 -n7 -p $$ >/dev/null
+ # But don't fail the script if we're not able to 'nice'
+ renice 10 $$ >/dev/null &2>1 || true
+ ionice -c3 -p $$ >/dev/null &2>1 || true
fi
# Start with the motd header