man reniced (Commandes) - renice running processes based on regular expressions
NAME
reniced - renice running processes based on regular expressions
SYNOPSIS
reniced [-h] [-v] [configfile]
OVERVIEW
reniced takes a list of regular expressions, looks for processes matching them and renices the processes to given values.
DESCRIPTION
On start, reniced reads a configuration file. It consists of nice values and regular expressions.
It then scans the process table using `ps -A`. Whenever a process name from the CMD column matches a regular expression, that process is reniced to the given value. If a process matches multiple regular expressions, only the first one encountered is executed.
When run as root, reniced will scan all processes. When run as a user, renice only scans the user's processes.
Switches
- -h
- This prints the version number and a short help text.
- -v
- This activates verbose mode. Some statistics and all renice actions are printed to stdout.
- configfile
- This reads the regular expressions from an alternate configfile. The default location of the configfile is /etc/reniced.conf if reniced is run as root, ~/.reniced otherwise.
Configuration file format
The configuration file is composed of single lines. Empty lines and lines starting with a # are ignored.
Every line must consist of a decimal value (the nice value) followed by a whitespace and a Perl regular expression.
MODULES NEEDED
use BSD::Resource;
This module can be obtained from <http://www.cpan.org>.
BUGS
reniced can run without the BSD::Resource module. In this case, the PRIO_PROCESS is set to 0. This works on Linux 2.6.11 i686 but it could break on other systems. Installing BSD::Resource is the safer way.
Please report bugs to <mitch@cgarbs.de>.
AUTHOT
reniced was written by Christian Garbs <mitch@cgarbs.de>.
AVAILABILITY
Look for updates ad <http://www.cgarbs.de/stuff.en.html>.
COPYRIGHT
reniced is licensed under the GNU GPL