From owner-freebsd-questions@FreeBSD.ORG Fri Jan 15 22:25:57 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 CB572106566C for ; Fri, 15 Jan 2010 22:25:57 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 59F228FC16 for ; Fri, 15 Jan 2010 22:25:56 +0000 (UTC) Received: by ewy5 with SMTP id 5so1474878ewy.34 for ; Fri, 15 Jan 2010 14:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=LhQEUMM6/2fk1PBB5wDJp+FK5qCZq03K1kAzRo1Bijs=; b=wJ8uSCfdT3YWJBPLR3Ak8AInnxfUM238RmDrhhKMN7RTmn3XpoMgj7p7GwQ1RECKQd wd4jgMP53bKrCOR8yDCgiUmVYjlW4CZbJuNfgh9nyzJ8uxa7HkJ+mwH/KW4PPOAZ36pV tnlFxaxnse6D97dgPZss7HjnBxgctzWMeNE7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=aK9600RNb62jPd9QCeJ9nCktgrKplMsa4M7WpjsgTmCQAVMWvHXRkqoq+OSugD49uQ svJRXuSV+UZ43eBDjtX+bzSYjp/6NdNuwBoqkTXw9fX9nD0GnnZEL21dvoxFOnacEHTT j5NU5eFzL9rlpbzpIvLJwH3TdLibPWklaqb7A= Received: by 10.213.68.205 with SMTP id w13mr282659ebi.20.1263594346621; Fri, 15 Jan 2010 14:25:46 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 15sm1856210ewy.4.2010.01.15.14.25.43 (version=SSLv3 cipher=RC4-MD5); Fri, 15 Jan 2010 14:25:46 -0800 (PST) Date: Fri, 15 Jan 2010 22:25:37 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100115222537.66f81d10@gumby.homeunix.com> In-Reply-To: <4B50B8EF.5080408@FreeBSD.org> References: <560f92641001151046r113b2846kd101e8e5fea8f131@mail.gmail.com> <4B50B8EF.5080408@FreeBSD.org> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: /etc/rc.d/program nice value X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 22:25:57 -0000 On Fri, 15 Jan 2010 13:50:23 -0500 Greg Larkin 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.