Package: util-linux Version: 2.17.2-9.1 Severity: wishlist Using a process name instead of PID to renice a running program is currently possible via:
ionice -c 3 -p `pidof some-program` This is inconvenient and long to type. Specifying a process name directly at this moment fails: ionice -c 3 -p some-program ionice: cannot parse number 'some-program' I suggest that instead if a non-number is passed, ionice instead of failing would assume that a process name is passed, and would automatically look up the PID. Alternatively, add another switch, e.g. "-s some-program" for specifying process names exclusively. As a yet another alternative, there could be made a split to ionice/sionice, similar to nice/snice, where the first would only execute new programs, and the second one would only renice the already running ones, also supporting various methods of specifying them (by name, by PID etc). A benefit of this would be a simpler invocation of "sionice", it would not require a "-p" switch to determine it needs to work on an already running program instead of starting a new one. --- System information. --- Architecture: amd64 Kernel: Linux 2.6.38-rm4 Debian Release: wheezy/sid 900 testing natsu.romanrm.ru --- Package information. --- Depends (Version) | Installed =============================-+-============= lsb-base (>= 3.0-6) | 3.2-27 tzdata (>= 2006c-2) | 2011d-1 initscripts | 2.88dsf-13.1 dpkg (>= 1.15.4) | 1.15.8.10 OR install-info | 4.13a.dfsg.1-6 debconf (>= 0.5) | 1.5.38 OR debconf-2.0 | Package's Recommends field is empty. Suggests (Version) | Installed =================================-+-=========== util-linux-locales | kbd | 1.15.2-3 OR console-tools | dosfstools | 3.0.9-1 -- With respect, Roman
signature.asc
Description: PGP signature

