From owner-freebsd-questions Sat Apr 20 8:28:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rhadamanth.submonkey.net (pc4-card4-0-cust162.cdf.cable.ntl.com [80.4.14.162]) by hub.freebsd.org (Postfix) with ESMTP id F0F3737B400 for ; Sat, 20 Apr 2002 08:28:28 -0700 (PDT) Received: from setantae by rhadamanth.submonkey.net with local (Exim 3.36 #1) id 16ywml-0001Y7-00; Sat, 20 Apr 2002 16:28:23 +0100 Date: Sat, 20 Apr 2002 16:28:23 +0100 From: Ceri Davies To: Bob Kersten Cc: questions@FreeBSD.ORG Subject: Re: changing sendmails priority Message-ID: <20020420152823.GA575@submonkey.net> Mail-Followup-To: Ceri Davies , Bob Kersten , questions@FreeBSD.ORG References: <004901c1e61f$18d52100$2849a8c0@kerstenz6r4278> <20020420030419.A45782@veverka.sh.cvut.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020420030419.A45782@veverka.sh.cvut.cz> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Apr 20, 2002 at 03:04:19AM +0200, Buki wrote: > On Wed, Apr 17, 2002 at 04:49:34PM +0200, Bob Kersten wrote: > > Hi, > > > > I trying to automatically change the priority of sendmail on my > > freebsd computer. This can be done through a terminal with 'renice -20 > > '. But the problem is, I want to do this on each > > reboot. I have sendmail configured to start from within the rc.conf, > > and i want to change the priority in rc.local (for instance). The PID > > of sendmail changes every reboot, so I don't know what to put in the > > section above. Can someone tell my how this is done > > more easily of differently? > > renice -20 `cat /var/run/sendmail.pid | head 1` should do the job I feel duty bound to mention that "-20" is probably not a good choice. This is basically saying that sendmail is the most important process on the machine and leaves you almost helpless should anyone attempt a DOS attack via sendmail. Obviously it's your choice, but I'd feel a bit guilty if I didn't mention it. Ceri -- get the cool shoe shine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message