Date: Fri, 15 Jan 2010 13:50:23 -0500 From: Greg Larkin <glarkin@FreeBSD.org> To: Nerius Landys <nlandys@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: /etc/rc.d/program nice value Message-ID: <4B50B8EF.5080408@FreeBSD.org> In-Reply-To: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com> References: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 means you can write this in your /etc/rc.conf file: apache22_enable="YES" apache22_nice="10" Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLULjv0sRouByUApARAv7zAJ4tbzuO/iixDQ4uXuko3eZV3vd3vQCgxS6A +iD7qTmAyK5Dff6WWSihtY4= =o29l -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B50B8EF.5080408>