Date: Fri, 15 Jan 2010 22:25:37 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: /etc/rc.d/program nice value Message-ID: <20100115222537.66f81d10@gumby.homeunix.com> In-Reply-To: <4B50B8EF.5080408@FreeBSD.org> References: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com> <4B50B8EF.5080408@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Jan 2010 13:50:23 -0500
Greg Larkin <glarkin@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100115222537.66f81d10>
