From owner-freebsd-questions@FreeBSD.ORG Fri Jan 15 18:50:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A7EA106566B for ; Fri, 15 Jan 2010 18:50:34 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 67A378FC16 for ; Fri, 15 Jan 2010 18:50:34 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NVrFc-000M0d-K8; Fri, 15 Jan 2010 13:50:33 -0500 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 0346F3A18B2F; Fri, 15 Jan 2010 13:50:28 -0500 (EST) Message-ID: <4B50B8EF.5080408@FreeBSD.org> Date: Fri, 15 Jan 2010 13:50:23 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Nerius Landys References: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com> In-Reply-To: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: FreeBSD Mailing List Subject: Re: /etc/rc.d/program nice value X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 18:50:34 -0000 -----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-----