/etc/rc.d/program nice value

RW rwmaillists at googlemail.com
Fri Jan 15 22:25:57 UTC 2010

On Fri, 15 Jan 2010 13:50:23 -0500
Greg Larkin <glarkin at FreeBSD.org> wrote:

> Nerius Landys wrote:
> > I'm running some programs using the /etc/rc.d/ and
> > /usr/local/etc/rc.d/ startup scripts.  I am wondering if there is
> > some standard way to run these programs at a higher nice value.
> Hi Nerius,
> Check out the list of variables in /etc/rc.subr.  This should help
> you:
> #       ${name}_nice    n       Nice level to run ${command} at.

That will work if the script lets  /etc/rc.subr start the daemon. If
it implements its own start function then ${name}_nice will have to be
explicitly supported by the script - not all do that unfortunately.

More information about the freebsd-questions mailing list