Re: Bug#381201: ITP: reniced -- renice running processes based on regular expressions
Josselin Mouette wrote:
> Le mercredi 02 août 2006 à 23:15 +0200, Bart Martens a écrit :
> > Instead of editing the scripts in /etc/init.d to give daemons the
> > nicelevel you want (and get prompted at every package update because
> > these files are conffiles) you can just run reniced once a day.
>
> Out of curiosity, what real-life uses does this tool have? Daemons don't
> need to be reniced, so there must be something else.
Actually, I wonder if this really warrants a package on its own; AFAICS
it just adds some sugar and error checking to something as basic as
,----[ reniced.sh ]
| #!/bin/bash
| grep -v '^#' "${1:-$HOME/.reniced" |
| while read prio regex; do
| renice $prio $(pgrep "$regex")
| done
`----
... which is something I'd expect to find in ~/bin, but not as the
single functionality of a Debian package.
Nikolaus
Reply to: