Date: Sat, 20 Apr 2002 16:28:23 +0100 From: Ceri Davies <setantae@submonkey.net> To: Bob Kersten <bob@medusa.nl> Cc: questions@FreeBSD.ORG Subject: Re: changing sendmails priority Message-ID: <20020420152823.GA575@submonkey.net> In-Reply-To: <20020420030419.A45782@veverka.sh.cvut.cz> References: <004901c1e61f$18d52100$2849a8c0@kerstenz6r4278> <20020420030419.A45782@veverka.sh.cvut.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > <sendmail's pid>'. 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 > > <sendmail's pid> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020420152823.GA575>